GenerateSasToken (FUN)¶
FUNCTION GenerateSasToken : WSTRING(255)
SaS Token Generator
- InOut:
Scope
Name
Type
Initial
Comment
Return
GenerateSasTokenWSTRING(255)Input
strUrlSTRING(255)Url to device for example: myHub.azure- devices.net/devices/device1
strPrimaryKeySTRINGPrimary key of device (see Azure IoT Hub Portal)
strPolicyNameSTRING‚‘
Policy name, e.g. empty string (‚‘) for c2d or d2c messages or (‚iothubowner‘) to read/write device twins.
uiExpiryUINT3600
Expiry in seconds default 3600