Add a text to the log file of this activity
Text to log.
Optional
alert: booleanTrue to mark this activity as failed, triggering an email alert to subscribers. False by default
Decode a base64 string to an integer number
The base64 encoded string
Optional
offset: numberNumber of bytes to skip before starting to read. Defaults to 0.
Optional
maxByteLength: numberNumber of bytes to read. Must satisfy 0 < byteLength <= 6. Defaults to 6.
A big endian signed integer
Decode a base64 string to a UTF-8 string
The base64 encoded string
A UTF-8 string
use stringToUint8Array and uint8ArrayToString instead
Decode a a base64 string to a Uint8Array
The base64 encoded string
Uint8Array
use stringToUint8Array instead
Decode the first CBOR item in the input into a JavaScript object
The input
Optional
encoding: stringThe decoded javascript object
Encode one or more JavaScript objects into a buffer containing the CBOR bytes
Rest
...objs: any[]any[]
Uint8Array
Decrypt data
information about the data to decrypt and the encryption cipher
decrypted data
Encrypt data
information about the data to encrypt and the encryption cipher
object with the encrypted payload, IV and authtag
Get the form fields of a location or port
type of object to get the fields from
hashId of the object to get the fields from
Get report file
File hash id to get
Encode an integer number into a base64 string
The big endian signed integer
Optional
maxByteLength: numberNumber of bytes to write. Must satisfy 0 < byteLength <= 6. Defaults to 6.
A base64 encoded value
Schedule a new command for this device
information about the new command
Perform an HTTP request
information about the HTTP request
Update the form fields of the device, its linked location or port
data to store
Optional
object: DeviceFieldsObjectwhere to store it (device by default)
Optional
logInAuditLog: booleanif true, the changes will be logged in the audit log
Encode a UTF-8 string into a base64 string
A UTF-8 string
The base64 encoded value
use stringToUint8Array and uint8ArrayToString instead
Convert a string to a Uint8Array
string to convert
encoding of the input string
Uint8Array
Encode a Uint8Array into a base64 string
Uint8Array
A base64 encoded value
use uint8ArrayToString instead
Convert a Uint8Array to a string
uint8Array to convert
encoding of the output string
string
Commands this handler can execute