Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 15 of 15) sorted by relevance

/vendor/hihope/neptune_iotlink_demo/ble/source/
Dexample.c31 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/
Diot_main.c193 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 …]
Diot_sta.c129 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/
Diot_main.c193 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 …]
Diot_sta.c129 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/
Diot_main.c186 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()
210rc = MQTTClient_subscribeMany(client, CN_TOPIC_SUBSCRIBE_NUM, (char* const*)g_defaultSubscribeTopi… in MqttProcess()
212 if (rc != MQTTCLIENT_SUCCESS) { in MqttProcess()
[all …]
Diot_sta.c125 errno_t rc; in StaStartConnect() local
129rc = 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/
Diot_main.c193 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()
217rc = MQTTClient_subscribeMany(client, CN_TOPIC_SUBSCRIBE_NUM, (char* const*)g_defaultSubscribeTopi… in MqttProcess()
219 if (rc != MQTTCLIENT_SUCCESS) { in MqttProcess()
[all …]
Diot_sta.c133 errno_t rc; in StaStartConnect() local
137rc = 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/
Dwifi_softap.c48 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/
Dwifi_softap.c50 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()
Dwifi_sta.c76 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()
Dapp_demo_histreaming.c93 int rc = SetKeyType(TRAFFIC_NORMAL_TYPE); in HistreamingHumanModuleNormal() local
94 if (rc != TRAFFIC_NORMAL_TYPE) { in HistreamingHumanModuleNormal()
/vendor/hihope/rk3568/bluetooth/src/
Dupio.c350 int rc; in upio_set() local
/vendor/hisilicon/watchos/patches/
Dhi3516dv300.patch11441 + 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;