您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

HttpReceiverOptions interface

Options structure used to configure how often the HTTP receiver polls for messages. Each of these options is mutually exclusive, except for the drain boolean. Only one interval, at, cron or manualPolling shall be present in the options structure. This is configured by calling <xref:Client.setOptions> with this as a property named receivePolicy inside of an <xref:HttpTransportOptions> object which is inside of an <xref:DeviceClientOptions> object.

Properties

at

Use this option to configure the receiver to receive only once at a specific time.

cron

Use a cron-formatted string

drain

Boolean indicating whether only one message should be received all messages should be drained.

interval

Interval in seconds at which the Azure IoT hub is going to be polled.

manualPolling

Does not poll and instead rely on the user calling the receive method.

Property Details

at

Use this option to configure the receiver to receive only once at a specific time.

at?: Date

Property Value

Date

cron

Use a cron-formatted string

cron?: string

Property Value

string

drain

Boolean indicating whether only one message should be received all messages should be drained.

drain?: boolean

Property Value

boolean

interval

Interval in seconds at which the Azure IoT hub is going to be polled.

interval?: number

Property Value

number

manualPolling

Does not poll and instead rely on the user calling the receive method.

manualPolling?: boolean

Property Value

boolean