/vendor/hihope/neptune_iotlink_demo/ble/source/ |
D | example.c | 31 int rc; in BLE_Task_Entry() local 38 rc = EnableBtStack(); in BLE_Task_Entry() 39 if (rc != OHOS_BT_STATUS_SUCCESS) { in BLE_Task_Entry() 40 printf("ERR: enable ble stack failed, rc=%d\r\n", rc); in BLE_Task_Entry()
|
/vendor/hisilicon/hispark_pegasus/demo/iottencent_demo/ |
D | iot_main.c | 193 int rc = 0, subQos[CN_TOPIC_SUBSCRIBE_NUM] = {1}; in MainEntryProcess() local 212 rc = MQTTClient_create(&client, CN_IOT_SERVER, clientID, MQTTCLIENT_PERSISTENCE_NONE, NULL); in MainEntryProcess() 213 if (rc != MQTTCLIENT_SUCCESS) { in MainEntryProcess() 219 rc = MQTTClient_setCallbacks(client, NULL, ConnLostCallBack, MsgRcvCallBack, NULL); in MainEntryProcess() 220 if (MqttDestory(rc, client) != MQTTCLIENT_SUCCESS) { in MainEntryProcess() 223 rc = MQTTClient_connect(client, &connOpts); in MainEntryProcess() 224 if (MqttDestory(rc, client) != MQTTCLIENT_SUCCESS) { in MainEntryProcess() 228 rc = MQTTClient_subscribeMany(client, CN_TOPIC_SUBSCRIBE_NUM, in MainEntryProcess() 230 if (MqttDestory(rc, client) != MQTTCLIENT_SUCCESS) { in MainEntryProcess() 284 int rc = -1; in IotSendMsg() local [all …]
|
D | iot_sta.c | 129 errno_t rc; in StaStartConnect() local 133 rc = memcpy_s(assoc_req.ssid, HI_WIFI_MAX_SSID_LEN + 1, CONFIG_AP_SSID, strlen(CONFIG_AP_SSID)); in StaStartConnect() 134 if (rc != EOK) { in StaStartConnect() 145 rc = memcpy_s(assoc_req.key, HI_WIFI_MAX_KEY_LEN + 1, CONFIG_AP_PWD, strlen(CONFIG_AP_PWD)); in StaStartConnect() 146 if (rc != EOK) { in StaStartConnect()
|
/vendor/hisilicon/hispark_pegasus/demo/mqtt_demo/ |
D | iot_main.c | 193 int rc = 0, subQos[CN_TOPIC_SUBSCRIBE_NUM] = {1}; in MainEntryProcess() local 212 rc = MQTTClient_create(&client, CN_IOT_SERVER, clientID, MQTTCLIENT_PERSISTENCE_NONE, NULL); in MainEntryProcess() 213 if (rc != MQTTCLIENT_SUCCESS) { in MainEntryProcess() 219 rc = MQTTClient_setCallbacks(client, NULL, ConnLostCallBack, MsgRcvCallBack, NULL); in MainEntryProcess() 220 if (MqttDestory(rc, client) != MQTTCLIENT_SUCCESS) { in MainEntryProcess() 223 rc = MQTTClient_connect(client, &connOpts); in MainEntryProcess() 224 if (MqttDestory(rc, client) != MQTTCLIENT_SUCCESS) { in MainEntryProcess() 228 rc = MQTTClient_subscribeMany(client, CN_TOPIC_SUBSCRIBE_NUM, in MainEntryProcess() 230 if (MqttDestory(rc, client) != MQTTCLIENT_SUCCESS) { in MainEntryProcess() 284 int rc = -1; in IotSendMsg() local [all …]
|
D | iot_sta.c | 129 errno_t rc; in StaStartConnect() local 133 rc = memcpy_s(assoc_req.ssid, HI_WIFI_MAX_SSID_LEN + 1, CONFIG_AP_SSID, strlen(CONFIG_AP_SSID)); in StaStartConnect() 134 if (rc != EOK) { in StaStartConnect() 145 rc = memcpy_s(assoc_req.key, HI_WIFI_MAX_KEY_LEN + 1, CONFIG_AP_PWD, strlen(CONFIG_AP_PWD)); in StaStartConnect() 146 if (rc != EOK) { in StaStartConnect()
|
/vendor/hisilicon/hispark_pegasus/demo/oc_demo/ |
D | iot_main.c | 186 int rc = MQTTClient_create(&client, CN_IOT_SERVER, clientID, MQTTCLIENT_PERSISTENCE_NONE, NULL); in MqttProcess() local 187 if (rc != MQTTCLIENT_SUCCESS) { in MqttProcess() 188 IOT_LOG_ERROR("Create Client failed,Please check the parameters--%d\r\n", rc); in MqttProcess() 195 rc = MQTTClient_setCallbacks(client, NULL, ConnLostCallBack, MsgRcvCallBack, NULL); in MqttProcess() 196 if (rc != MQTTCLIENT_SUCCESS) { in MqttProcess() 202 rc = MQTTClient_connect(client, &connOpts); in MqttProcess() 203 if (rc != MQTTCLIENT_SUCCESS) { in MqttProcess() 204 … IOT_LOG_ERROR("Connect IoT server failed,please check the network and parameters:%d\r\n", rc); in MqttProcess() 210 …rc = MQTTClient_subscribeMany(client, CN_TOPIC_SUBSCRIBE_NUM, (char* const*)g_defaultSubscribeTopi… in MqttProcess() 212 if (rc != MQTTCLIENT_SUCCESS) { in MqttProcess() [all …]
|
D | iot_sta.c | 125 errno_t rc; in StaStartConnect() local 129 …rc = memcpy_s(assoc_req.ssid, HI_WIFI_MAX_SSID_LEN + 1, CONFIG_AP_SSID, strlen(CONFIG_AP_SSID)); /… in StaStartConnect() 130 if (rc != EOK) { in StaStartConnect() 141 rc = memcpy_s(assoc_req.key, HI_WIFI_MAX_KEY_LEN + 1, CONFIG_AP_PWD, strlen(CONFIG_AP_PWD)); in StaStartConnect() 142 if (rc != EOK) { in StaStartConnect()
|
/vendor/hisilicon/hispark_pegasus/demo/coap_demo/ |
D | iot_main.c | 193 int rc = MQTTClient_create(&client, CN_IOT_SERVER, clientID, MQTTCLIENT_PERSISTENCE_NONE, NULL); in MqttProcess() local 194 if (rc != MQTTCLIENT_SUCCESS) { in MqttProcess() 195 IOT_LOG_ERROR("Create Client failed,Please check the parameters--%d\r\n", rc); in MqttProcess() 202 rc = MQTTClient_setCallbacks(client, NULL, ConnLostCallBack, MsgRcvCallBack, NULL); in MqttProcess() 203 if (rc != MQTTCLIENT_SUCCESS) { in MqttProcess() 209 rc = MQTTClient_connect(client, &connOpts); in MqttProcess() 210 if (rc != MQTTCLIENT_SUCCESS) { in MqttProcess() 211 … IOT_LOG_ERROR("Connect IoT server failed,please check the network and parameters:%d\r\n", rc); in MqttProcess() 217 …rc = MQTTClient_subscribeMany(client, CN_TOPIC_SUBSCRIBE_NUM, (char* const*)g_defaultSubscribeTopi… in MqttProcess() 219 if (rc != MQTTCLIENT_SUCCESS) { in MqttProcess() [all …]
|
D | iot_sta.c | 133 errno_t rc; in StaStartConnect() local 137 …rc = memcpy_s(assoc_req.ssid, HI_WIFI_MAX_SSID_LEN + 1, CONFIG_AP_SSID, strlen(CONFIG_AP_SSID)); /… in StaStartConnect() 138 if (rc != EOK) { in StaStartConnect() 149 rc = memcpy_s(assoc_req.key, HI_WIFI_MAX_KEY_LEN + 1, CONFIG_AP_PWD, strlen(CONFIG_AP_PWD)); in StaStartConnect() 150 if (rc != EOK) { in StaStartConnect()
|
/vendor/hisilicon/hispark_pegasus/demo/udp_demo/ |
D | wifi_softap.c | 48 errno_t rc; in HiWifiStartSoftap() local 59 rc = memcpy_s(hapd_conf.ssid, HI_WIFI_MAX_SSID_LEN + 1, "XXXXXXXX", 9); /* 9:ssid length */ in HiWifiStartSoftap() 60 if (rc != EOK) { in HiWifiStartSoftap()
|
/vendor/hisilicon/hispark_pegasus/demo/histreaming_demo/ |
D | wifi_softap.c | 50 errno_t rc = 0; in hi_wifi_start_softap() local 70 rc = memcpy_s(hapd_conf.ssid, HI_WIFI_MAX_SSID_LEN + 1, ssid, 20); /* 20:ssid length */ in hi_wifi_start_softap() 71 if (rc != EOK) { in hi_wifi_start_softap()
|
D | wifi_sta.c | 76 errno_t rc = 0; in hi_wifi_start_connect() local 84 rc = memcpy_s(assoc_req.ssid, HI_WIFI_MAX_SSID_LEN + 1, ssid, 20); /* 20:ssid length */ in hi_wifi_start_connect() 85 if (rc != EOK) { in hi_wifi_start_connect()
|
D | app_demo_histreaming.c | 93 int rc = SetKeyType(TRAFFIC_NORMAL_TYPE); in HistreamingHumanModuleNormal() local 94 if (rc != TRAFFIC_NORMAL_TYPE) { in HistreamingHumanModuleNormal()
|
/vendor/hihope/rk3568/bluetooth/src/ |
D | upio.c | 350 int rc; in upio_set() local
|
/vendor/hisilicon/watchos/patches/ |
D | hi3516dv300.patch | 11441 + writel_relaxed(0xe51ff004, virt); /* ldr pc, [rc, #-4] */ 12835 int rc; 12860 rc = ahci_kick_engine(ap); 12861 if (rc && rc != -EOPNOTSUPP) 12864 rc = -EIO; 55780 if (!new_fsg || rc) 55781 return rc;
|