设备接入 IOTDA-内部函数:Fn::GetBytes
时间:2025-04-22 09:19:55
Fn::GetBytes
内部函数Fn::GetBytes返回一个字符串UTF-8编码的字节数组。
JSON
{"Fn::GetBytes": "content"}
参数名称 |
类型 |
说明 |
---|---|---|
content |
String |
待编码的字符串。 |
返回值 |
byte[] |
字符串UTF-8编码后的字节数组。 |
示例如下:
{ "Fn::GetBytes": "testvalue" } return: "7465737476616c7565" //为了方便展示,此处转化为16进制字符串
support.huaweicloud.com/usermanual-iothub/iot_01_0216.html