Lines Matching refs:ret

50         var ret = this.IoTDeviceInstance.subscribe(options, cb || function() {});
51 if (ret < 0) {
55 return ret;
59 var ret = this.IoTDeviceInstance.unsubscribe(topic, cb || function() {});
60 if (ret < 0) {
64 return ret;
68 var ret = this.IoTDeviceInstance.publish(options, cb || function() {});
69 if (ret < 0) {
73 return ret;
77 var ret = this.IoTDeviceInstance.getNtpTime(cb || function() {});
78 if (ret < 0) {
81 return ret;
86 var ret = this.IoTDeviceInstance.postProps(params, cb || function() {});
87 if (ret < 0) {
91 return ret;
95 var ret = this.IoTDeviceInstance.onProps(cb);
96 if (ret < 0) {
100 return ret;
105 var ret = this.IoTDeviceInstance.postEvent(options, cb || function() {});
106 if (ret < 0) {
110 return ret;
114 var ret = this.IoTDeviceInstance.onService(cb);
115 if (ret < 0) {
119 return ret;
123 var ret = this.IoTDeviceInstance.close(cb || function() {});
124 if (ret < 0) {
128 return ret;
181 var ret = this.IoTGatewayInstance.addTopo(options, cb || function() {});
182 if (ret < 0) {
186 return ret;
190 var ret = this.IoTGatewayInstance.getTopo(cb || function() {});
191 if (ret < 0) {
195 return ret;
199 var ret = this.IoTGatewayInstance.removeTopo(options, cb || function() {});
200 if (ret < 0) {
204 return ret;
208 var ret = this.IoTGatewayInstance.login(options, cb || function() {});
209 if (ret < 0) {
213 return ret;
217 var ret = this.IoTGatewayInstance.logout(options, cb || function() {});
218 if (ret < 0) {
222 return ret;
226 var ret = this.IoTGatewayInstance.registerSubDevice(options, cb || function() {});
227 if (ret < 0) {
231 return ret;
235 var ret = this.IoTGatewayInstance.subscribe(params, cb || function() {});
236 if (ret < 0) {
240 return ret;
244 var ret = this.IoTGatewayInstance.unsubscribe(topic, cb || function() {});
245 if (ret < 0) {
249 return ret;
253 var ret = this.IoTGatewayInstance.publish(options, cb || function() {});
254 if (ret < 0) {
258 return ret;
262 var ret = this.IoTGatewayInstance.getNtpTime(cb || function() {});
263 if (ret < 0) {
266 return ret;
281 var ret = AIOT_DEVICE.register(options, cb);
282 if (ret < 0) {
286 return ret;