HTTPS动态注册使用示例

if(dynreg_handle=NULL){ printf("aiot_dynreg_init failed");return-1;} 步骤二:配置功能 调用 aiot_dynreg_init,配置以下功能。配置连接参数。配置消息回调。更多功能的配置项,请参见 HTTPS动态注册配置项。配置连接参数。示例代码:...

使用示例

void demo_mqtt_default_recv_handler(void*handle,const aiot_mqtt_recv_t*packet,void*userdata){ switch(packet->type){ case AIOT_MQTTRECV_HEARTBEAT_RESPONSE:{ printf("heartbeat response");TODO:处理服务器对心跳的回应,一般不...

失败步骤

version:v1 type:flow steps:type:choice name:mychoice choices:condition:$.status="ready"#choice with steps steps:type:pass name:pass1 goto:final-condition:$.status="failed"goto:handle_failure default:#no need to use goto ...

接口说明

long long(*ioctl)(void*handle,const char*cmd,void*arg);参数说明 参数 类型 描述 handle void*open 返回的句柄。cmd const char*发送的命令名称,详情请参见下表。arg void*发送的命令参数。如果命令不带参数,填NULL。命令名称 命令...

远程登录进程说明

创建1个实例并内部初始化默认参数*/void*tunnel_handle=aiot_tunnel_init();if(tunnel_handle=NULL){ printf("aiot_tunnel_init failed");return-1;} 配置功能。配置网络连接的安全凭据,上面已经创建好了*/aiot_tunnel_setopt(tunnel_...

MQTT接入使用示例

void demo_mqtt_default_recv_handler(void*handle,const aiot_mqtt_recv_t*packet,void*userdata){ switch(packet->type){ case AIOT_MQTTRECV_HEARTBEAT_RESPONSE:{ printf("heartbeat response");TODO:处理服务器对心跳的回应,一般不...

驱动编码

} static int call_service_callback_cb(device_handle_t device_handle,const char*service_name,const leda_device_data_t data[],int data_count,leda_device_data_t output_data[],void*usr_data){.return ret;} 说明 本示例的完整工程...

驱动编码

} static int call_service_callback_cb(device_handle_t device_handle,const char*service_name,const leda_device_data_t data[],int data_count,leda_device_data_t output_data[],void*usr_data){.return ret;} 说明 本示例的完整工程...

使用示例

MQTT默认消息处理回调,当SDK从服务器收到MQTT消息时,且无对应用户回调处理时被调用*/void demo_mqtt_default_recv_handler(void*handle,const aiot_mqtt_recv_t*packet,void*userdata){ switch(packet->type){ case AIOT_MQTTRECV_...

通过EnvoyFilter资源自定义请求头和响应头

local header_value=request_handle:headers():get(header_key)if header_value then-写入到Otel Baggage local baggage=header_key."=".header_value request_handle:headers():add("baggage",baggage)request_handle:streamInfo():...

远程登录

步骤4:隧道建连/*隧道未建连,异步完成隧道建连,在事件回调函数中重置tunnel_status状态*/aiot_tunnel_connect(tunnel_handle);步骤5:建立SSH会话 在 远程登录 页签,单击 登录。在对话框中,输入设备远程访问的用户名和密码,单击 确定...

HTTP2接入

参数说明 参数 数据类型 方向 说明 handle void*输入 连接句柄。info stream_data_info_t*输入/输出 流操作参数。header header_ext_info_t*输入 用户额外定制的头文件,可以为NULL。参数附加说明 typedef struct { char*stream;uint32_t ...

MQTT连云HAL

HAL_SSL_Destroy 接口原型 int32_t HAL_SSL_Destroy(_IN_uintptr_t handle);接口说明 销毁由参数 handle 指定的TLS连接。参数说明 参数 数据类型 方向 说明 handle uintptr_t 输入 TLS连接句柄 返回值说明 值 说明操作失败=0 操作成功 HAL_...

错误处理

Type:StateMachine Name:ErrorHandleExample SpecVersion:v1 Description:'基础错误处理示范' StartAt:my-error-handle-example States:Type:Task Name:my-error-handle-example Action:FC:InvokeFunction TaskMode:RequestComplete ...

将密钥材料导入密码机HSM

预期输出:Cfm3GenerateSymmetricKey returned:0x00:HSM Return:SUCCESS Symmetric Key Created.Key Handle:37 Cluster Status:Node id 0 status:0x00000000:HSM Return:SUCCESS 执行 imSymKey 命令,导入对称密钥材料。Command:imSymKey-f...

接口说明

void(*close)(void*handle)参数说明:参数 类型 描述 handle void*open接口返回的句柄。write:发送音视频数据。int(*write)(struct rts_frame*frame,void*handle)参数说明:参数 类型 描述 frame struct rts_frame*要发送的音视频帧。...

消费托管MQ接口

ackRequest.setReceipt_handle(msg.getReceipt_handle());ackRequest.setState(worker(msg)?success":"failed");ackMQMessageRequest.getMqAckRequests().add(ackRequest);} if(ackMQMessageRequest.getMqAckRequests().size()>0){/确认...

收发事务消息

try:receipt_handle_list=[msg.receipt_handle for msg in recv_msgs]consumer.ack_message(receipt_handle_list)print(("Ak%s Message Succeed."%len(receipt_handle_list)))except MQExceptionBase as e:print(("Ak Message Fail!...

Windows端集成美颜特效SDK

}/创建美颜引擎/rootPath 美颜资源路径:queen_res的上级⽬录(不传默认为exe⽬录)queen_engine_t handle_beauty;if(QUEEN_RESULT_CODE_OK!queen_engine_create(&handle_beauty,rootPath,"123456")){ return;} 启⽤效果并设置效果参数。开启...

在密码机HSM之间复制密钥

预期输出:Cfm3GenerateKeyPair returned:0x00:HSM Return:SUCCESS Cfm3GenerateKeyPair:public key handle:33 private key handle:32 Cluster Status:Node id 0 status:0x00000000:HSM Return:SUCCESS 执行 exportPubKey 命令,导出RSA...

管理Spring Cloud服务

handle:logInfo("subscribe for serviceName:".servicename)else request_handle:streamInfo():dynamicMetadata():set("context","request.path","")end end function envoy_on_response(response_handle)local request_path=response_...

MSSQL中如何查看行锁等待

go WITH CTE_SID(BSID,SID,sql_handle)AS(SELECT[Blocking_Session_ID],[Session_ID],sql_handle FROM sys.dm_exec_requests WHERE[Blocking_Session_ID]<>0 UNION ALL SELECT A.[Blocking_Session_ID],A.[Session_ID],A.sql_handle FROM ...

线程HAL

HAL_ThreadCreate 原型:int HAL_ThreadCreate(_OU_void*thread_handle,_IN_void*(*work_routine)(void*),_IN_void*arg,_IN_hal_os_thread_param_t*hal_os_thread_param,_OU_int*stack_used);接口说明:调用此接口指定入参创建一个线程。...

业务进程说明

配置MQTT句柄,ra内部会订阅MQTT的消息*/aiot_tunnel_switch_setopt(tunnel_switch_handle,AIOT_TSOPT_MQTT_HANDLE,mqtt_handle);配置消息回调函数。回调函数功能:解析隧道相关消息,并将消息同步给运维进程。配置消息回调函数*/aiot_...

事件接口

false:错误 示例/event handler EventHandler handler=new EventHandler(){@Override public void handle(Message message){ EventAccountMessage eventAccountMessage=(EventAccountMessage)message;code } };account:Tester001 Identity...

快速体验

}.int example_subscribe(void*handle){.res=IOT_MQTT_Subscribe(handle,topic,IOTX_MQTT_QOS0,example_message_arrive,NULL);说明 其中,IOT_MQTT_Subscribe()的第1个参数可以填入之前调用 IOT_MQTT_Construct()得到的句柄返回值,也可以...

ALIYUN:ROS:WaitCondition

语法 {"Type":"ALIYUN:ROS:WaitCondition","Properties":{"Count":Number,"Handle":String,"Timeout":Number,"ShowProgressEvent":String } } 属性 属性名称 类型 必须 允许更新 描述 约束 Handle String 是 否 引用ALIYUN:ROS:...

3.2 自定义协议驱动开发指导

} static int call_service_callback_cb(device_handle_t device_handle,const char*service_name,const leda_device_data_t data[],int data_count,leda_device_data_t output_data[],void*usr_data){.return ret;} 2.3 驱动产出方式 2.3....

函数实例生命周期回调方法

函数实例生命周期回调程序与正常调用请求计费规则一致,但其执行日志只能在 函数日志、实例日志 或 高级日志 中查询,调用请求列表 不会展示回调程序日志。具体操作,请参见 查看实例生命周期回调函数日志。回调方法签名 初始化回调程序...

文件上传

} void upload_id_received_handle(const char*file_path,const char*upload_id,void*user_data){ EXAMPLE_TRACE("=file_path=s,upload_id=s=",file_path,upload_id);if(upload_id!NULL){ memcpy(g_upload_id,upload_id,strlen(upload_id))...

Linux RTS SDK集成与实现

rts_config.event_handle.on_key_frame_req=on_key_frame_req;rts_config.event_handle.on_disconnected=on_disconnected;rts_config.event_handle.on_publish=on_publish;rts_config.event_handle.user_data=NULL;用户对象指针/开始推流,...

事件处理

const handle=(res)=>console.log(res)/监听事件 instance.on('tabSwitch',handle)/取消监听 instance.on('tabSwitch',handle)监听公共事件 公共事件如下表所示。事件名 说明 fileOpen 文档打开。error 错误事件。tabSwitch PC头部Tab切换...

基于 LinkSDK 集成安全 Agent 最佳实践

mqtt_handle){ aiot_mqtt_pub(mqtt_handle,topic,(uint8_t*)message,(uint32_t)length,0);} else { fprintf(stderr,"[SOC]MQTT client as custom context is empty");} return 0;}(3)在主流程(demo 例程中的主函数)当中,MQTT 建立成功...

示例二:MQTT数据流模式文件上传

把Upload会话和MQTT会话关联起来*/aiot_mqtt_upload_setopt(up_handle,AIOT_MQTT_UPLOADOPT_MQTT_HANDLE,mqtt_handle);(可选)设置每包数据超时重发的超时时间,默认是5s超时重试*/uint32_t rsp_timeout=10000;aiot_mqtt_upload_setopt(up_...

旧版本快速体验

PUBLISH(1412):Packet Ident:00035641[dbg]iotx_mc_handle_recv_PUBLISH(1413):Topic Length:26[dbg]iotx_mc_handle_recv_PUBLISH(1417):Topic Name:/a1ExpAkj9Hi/Example1/data[dbg]iotx_mc_handle_recv_PUBLISH(1420):Payload Len/Room:...

基于 LinkSDK 集成安全 Agent 最佳实践

mqtt_handle){ aiot_mqtt_pub(mqtt_handle,topic,(uint8_t*)message,(uint32_t)length,0);} else { fprintf(stderr,"[SOC]MQTT client as custom context is empty");} return 0;}(3)在主流程(demo 例程中的主函数)当中,MQTT 建立成功...

数据类型

long long(*ioctl)(void*handle,const char*cmd,void arg);int(*read)(struct rtsframe*frame,void handle);int(*write)(struct rtsframe*frame,void*handle);};数据成员 描述 api_version API版本号(必须是2)。preconfig 全局参数配置...

收发普通消息

try:receipt_handle_list=[msg.receipt_handle for msg in recv_msgs]consumer.ack_message(receipt_handle_list)print(("Ak%s Message Succeed."%len(receipt_handle_list)))except MQExceptionBase as e:print(("Ak Message Fail!...

收发事务消息

thread=(HANDLE)_beginthreadex(NULL,0,consumeHalfMessageThread,&transProducer,0,&threadId);else pthread_t thread;pthread_create(&thread,NULL,consumeHalfMessageThread,static_cast*>(&transProducer));endif try { for(int i=0;i;...

日志

logger.LogInformation("Handle request:{0}",context.RequestId);logger.LogInformation(string.Format("detail={0}","hello world"));MemoryStream copy=new MemoryStream();await input.CopyToAsync(copy);copy.Seek(0,SeekOrigin.Begin...
共有200条 < 1 2 3 4 ... 200 >
跳转至: GO
产品推荐
云服务器 安全管家服务 安全中心
这些文档可能帮助您
弹性公网IP 短信服务 人工智能平台 PAI 金融分布式架构 对象存储 物联网平台
新人特惠 爆款特惠 最新活动 免费试用