蓝牙设备属性表

ID2AuthRand 0xFF08 uint8 authType uint8 len uint8 authRand[len]-authType:ID²认证方式 0 – 挑战字,默认 1 – 时间戳 2 – TOTP动态密码 len:ID²设备认证码的长度 authCode:ID²设备认证码 ID2AuthCode 0xFF09 uint8 authType ...

快速使用ClickHouse

`SilverlightVersion3` UInt32,`SilverlightVersion4` UInt16,`PageCharset` String,`CodeVersion` UInt32,`IsLink` UInt8,`IsDownload` UInt8,`IsNotBounce` UInt8,`FUniqID` UInt64,`HID` UInt32,`IsOldCounter` UInt8,`IsEvent` UInt8,`...

JavaScript脚本示例

}/以下是部分辅助函数 function buffer_uint8(value){ var uint8Array=new Uint8Array(1);var dv=new DataView(uint8Array.buffer,0);dv.setUint8(0,value);return[].slice.call(uint8Array);} function buffer_int16(value){ var uint8...

JavaScript脚本示例

function buffer_uint8(value){ var uint8Array=new Uint8Array(1);var dv=new DataView(uint8Array.buffer,0);dv.setUint8(0,value);return[].slice.call(uint8Array);} function buffer_int16(value){ var uint8Array=new Uint8Array(2);...

配置产品和设备

function buffer_uint8(value){ var uint8Array=new Uint8Array(1);var dv=new DataView(uint8Array.buffer,0);dv.setUint8(0,value);return[].slice.call(uint8Array);} function buffer_int16(value){ var uint8Array=new Uint8Array(2);...

透传/编辑脚本

}/以下是部分辅助函数 function buffer_uint8(value){ var uint8Array=new Uint8Array(1);var dv=new DataView(uint8Array.buffer,0);dv.setUint8(0,value);return[].slice.call(uint8Array);} function buffer_int16(value){ var uint8...

摄像头设备配网开发实践

awss_connect(char ssid[HAL_MAX_SSID_LEN],char passwd[HAL_MAX_PASSWD_LEN],uint8_t*bssid,uint8_t bssid_len,uint8_t*token,uint8_t token_len,bind_token_type_t token_type)函数的参数说明如下。参数 类型 描述 ssid char 路由器的...

UART-串口

read(Uint8Array data,Number bytes,Number timeout)轮询模式主动读取指定 bytes 的串口数据,读取到的串口数据为 Uint8Array 类型,仅串口配置为 poll 模式时生效。入参 参数 类型 是否必填 描述 data Uint8Array 是 保存从串口读取的数据...

LoRaWAN设备消息解析

function buffer_uint8(value){ var uint8Array=new Uint8Array(1);var dv=new DataView(uint8Array.buffer,0);dv.setUint8(0,value);return[].slice.call(uint8Array);} function buffer_int16(value){ var uint8Array=new Uint8Array(2);...

设备端API

以挑战应答模式获取设备认证码 函数原型:int id2_client_get_challenge_auth_code(const char*challenge,const uint8_t*extra,uint32_t extra_len,uint8_t*auth_code,uint32_t*auth_code_len)。功能描述:基于挑战应答模式生成设备端认证...

LoRaWAN温湿度传感器方案

}/以下是部分辅助函数 function buffer_uint8(value){ var uint8Array=new Uint8Array(1);var dv=new DataView(uint8Array.buffer,0);dv.setUint8(0,value);return[].slice.call(uint8Array);} function buffer_int16(value){ var uint8...

蓝牙设备端SDK用户编程接口

参数 名称 类型 描述 buffer uint8_t*数据指针。length uint32_t 数据长度,byte数。返回值 0-成功;其他错误值-失败 breeze_post_fast 和breeze_post类似,推送设备端状态数据至移动端,区别在于使用BLE notify方式。参数 名称 类型 描述 ...

I2C-串行总线

入参 属性 类型 必填 描述 memaddr Number 是 寄存器地址memaddr data Uint8Array 是 要发送的数据 返回●写成功返回值为0 read(Number bytes)主动读取指定bytes的I2C数据,无需配置寄存器地址,该函数为阻塞函数。入参 属性 类型 必填 ...

Python脚本示例

bytes):uint8Array=[]for byteValue in bytes:uint8Array.append(byteValue&0xff)jsonMap={} if SELF_DEFINE_TOPIC_ERROR_FLAG in topic:jsonMap['topic']=topic jsonMap['errorCode']=bytes_to_int(uint8Array[0:1])elif SELF_DEFINE_...

配置LoRa设备接入物联网平台

function rawDataToProtocol(bytes){ var uint8Array=new Uint8Array(bytes.length);for(var i=0;i;i+){ uint8Array[i]=bytes[i]&0xff;} var dataView=new DataView(uint8Array.buffer,0);var jsonMap={};var fHead=uint8Array[0];第0个...

编写自定义脚本

int16']=bytes_to_int(uint8Array[5:7])jsonMap['prop_bool']=bytes_to_int(uint8Array[7:8])jsonMap['prop_float']=bytes_to_int(uint8Array[8:])return jsonMap#byte数组转换为整型。def bytes_to_int(bytes):data=['%02X'%i for i in ...

基于透传协议开发虚拟光照度探测器

static Int32_t boneServCall_SetAlarmThreshold(Uint32_t id,Uint8_t*data,Uint16_t length){ Uint8_t len=0;Uint8_t buffer[64]={0};si_SetAlarmThreshold_t*iarg;BONE_UNUSED(len);BONE_UNUSED(buffer);1.解析入参(没有则忽略)iarg=...

JavaScript脚本示例

0x000000000100320100000000 输出参数:{"prop_float":0,"prop_int16":50,"prop_bool":1,"topic":"/${productKey}/${deviceName}/user/update"}*/function transformPayload(topic,bytes){ var uint8Array=new Uint8Array(bytes.length);...

Python脚本示例

0x0300223344c8#输出结果:#{"code":"200","data":{},"id":"2241348","version":"1.0"} def raw_data_to_protocol(bytes):uint8Array=[]for byteValue in bytes:uint8Array.append(byteValue&0xff)fHead=uint8Array[0]jsonMap={} if fHead...

ABI文件

Go 源码 ABI bool bool int8 int8 uint8,byte uint8 int16 int16 uint16 uint16 int32,int,rune int32 uint32,uint,uintptr uint32 int64 int64 uint64 uint64 string string Identity Identity[]AnyType AnyType[]Solidity 源码 ABI bool ...

平台接口函数

请求参数 参数 必选 类型 说明 hash 是 bytes32 签名数据的哈希结果 r 是 bytes32 签名前 32 字节 s 是 bytes32 签名后 32 字节 v 是 uint8 签名最后一字节 返回值 参数 必选 类型 说明 id 是 identity 账户 ID 说明 说明:蚂蚁区块链合约...

接口名称限制说明

序号 关键字 序号 关键字 1 bool 19 name 2 int8 20 bytes 3 uint8 21 string 4 int16 22 block_timestamp_type 5 uint16 23 checksum160 6 int32 24 checksum256 7 uint32 25 checksum512 8 int64 26 public_key 9 uint64 27 signature 10...

合约数据类型

平台建议使用数据类型示例如下所示:数据类型 参考样例 合约内部是否支持 输入参数是否支持 bool bool a=true 是 是 uint uint a=1 是 是 uint8~uint256 uint8 a=1 是 是 int int a=1 是 是 int8~int256 int8 a=1 是 是 bytes bytes a=...

创建表

示例:CREATE TABLE clickhouse_demo.ontime_local ON CLUSTER default(`Year` UInt16,`Quarter` UInt8,`Month` UInt8,`DayofMonth` UInt8,`DayOfWeek` UInt8,`FlightDate` Date,`Reporting_Airline` String,`DOT_ID_Reporting_Airline` ...

sh1106(OLED)

sh1106 绘制字符串 void sh1106_show_string(uint8_t x,uint8_t y,const uint8_t*p,uint8_t size,uint8_t mode);args description x,y 字符串左上角相对屏幕坐标 p 字符串指针 size 字符点集大小支持 12/16/24 mode 0-反显 1-正显 使用示例...

SE芯片驱动API

se_transmit 函数原型:irot_result_t se_transmit(void*handle,const uint8_t*cmd_apdu,const uint32_t cmd_len,uint8_t*rsp_buf,uint32_t*rsp_len)。功能描述:发送APDU命令到SE芯片,并接收SE芯片返回的APDU响应,响应数据包含2个字节...

签名验证接口函数

if(bp1>=0x30&bp1){ bp3=byte(uint8(bp1)-0x30);} if(bp1>=0x41&bp1){ bp3=byte(uint8(bp1)-0x41+10);} if(bp1>=0x61&bp1){ bp3=byte(uint8(bp1)-0x61+10);} if(bp2>=0x30&bp2){ bp4=byte(uint8(bp2)-0x30);} if(bp2>=0x41&bp2){ bp4=byte...

WiFi配网HAL

参数说明 参数 数据类型 方向 说明 aes p_HAL_Aes128_t 输入 此参数应调用 HAL_Aes128_Init()时返回的上下文结构体指针 返回值说明 值 说明 0 操作成功-1 操作失败 HAL_Aes128_Init 原型 p_HAL_Aes128_t HAL_Aes128_Init(_IN_const uint8_t...

iOS和Mac

} if(videoSample.type=AliRtcBufferType_Raw_Data){ if(videoSample.dataYPtr&videoSample.dataUPtr&videoSample.dataVPtr){ memcpy(outputData,(uint8_t*)videoSample.dataYPtr,w*h*3/2);memcpy(outputData+w*h,(uint8_t*)videoSample....

使用简介

每条记录必须包含一个唯一的正整数类型的ID字段(uint4/uint8)。必须已经为几何字段创建好空间索引。几何数据的坐标系支持任意 EPSG 代码的坐标系,输出mvt支持 EPSG:3857/EPSG:4326 两种坐标系。硬件条件 1亿条数据建议配置:32核CPU、64...

使用简介

每条记录必须包含一个唯一的正整数类型的ID字段(uint4/uint8)。必须已经为几何字段创建好空间索引。几何数据的坐标系支持任意 EPSG 代码的坐标系,输出mvt支持 EPSG:3857/EPSG:4326 两种坐标系。硬件条件 1亿条数据建议配置:32核CPU、64...

Python脚本示例

{"code":"200","data":{},"id":"2241348","version":"1.0"} def raw_data_to_protocol(bytes):uint8Array=[]for byteValue in bytes:uint8Array.append(byteValue&0xff)fHead=uint8Array[0]jsonMap={} if fHead=COMMAND_REPORT:jsonMap['...

使用简介

每条记录必须包含一个唯一的正整数类型的ID字段(uint4/uint8)。必须已经为几何字段创建好空间索引。几何数据的坐标系支持任意 EPSG 代码的坐标系,输出mvt支持 EPSG:3857/EPSG:4326 两种坐标系。硬件条件 1亿条数据建议配置:32核CPU、64...

系统表说明

active_replicas UInt8 在ZooKeeper中具有会话的此表的副本的数量(即正常运行的副本的数量)。示例:您可以执行以下命令,查看表信息。SELECT*FROM system.replicas WHERE table='visits' FORMAT Vertical 返回信息如下。Row 1:─database...

批量配网开发实践

} int awss_dev_ap_modeswitch_cb(uint8_t awss_new_mode,uint8_t new_mode_timeout,uint8_t fix_channel){ if((awss_new_mode=0)&!g_dev_ap_zconfig_run){ g_dev_ap_zconfig_run=1;Only receive zero provision packets zconfig_80211_...

开发文档

}/*@dev build mychain010 blockheader content id*@param_hash bytes*/function buildMychain010HeaderCID(bytes_hash)internal pure returns(string){ uint8 hash_length=uint8(_hash.length);bytes memory multihash=concat(concat...

蓝牙BLE业务流程与体脂秤示例

米,摄氏度)1:英制(磅,英尺,华氏度)2:中国单位(市斤,尺)开始称重 0xF009 uint8 Event 0x1D:开始测量 低电告警 0xF009 uint8 Event 0x01 电量 0x0104 uint8 power_percent 电池电量百分比 故障上报 0xF009 uint8 Event 设备发生...

正排索引介绍

正排索引的类型 目前引擎支持的正排字段的基本类型为:attribute类型 描述 单值 多值 INT8 8位有符号数字类型 id=-27 id=-27]26]33 UINT8 8位无符号数字类型 id=56 id=27]222]32 INT16 16位有符号数字类型 id=-2724 id=-1217^]236 UINT16 ...

正排索引介绍

正排索引的类型 目前引擎支持的正排字段的基本类型为:attribute类型 描述 单值 多值 INT8 8位有符号数字类型 id=-27 id=-27]26]33 UINT8 8位无符号数字类型 id=56 id=27]222]32 INT16 16位有符号数字类型 id=-2724 id=-1217^]236 UINT16 ...

在Link TEE上适配ID²

HAL_Aes128_t HAL_Aes128_Init(_IN_const uint8_t*key,_IN_const uint8_t*iv,_IN_AES_DIR_t dir){ ali_crypto_result result;void*aes_ctx;size_t aes_ctx_size,alloc_siz;uint8_t*p;bool is_en=true;encrypto by default if(dir=PLATFORM_...
共有11条 < 1 2 3 4 ... 11 >
跳转至: GO
产品推荐
云服务器 安全管家服务 安全中心
这些文档可能帮助您
弹性公网IP 短信服务 人工智能平台 PAI 金融分布式架构 对象存储 模型服务灵积
新人特惠 爆款特惠 最新活动 免费试用