/AliOS-Things-master/components/py_engine/modules/aliyunIoT/ |
A D | module_aiot_ntp.c | 38 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("year", 4), in aiot_device_ntp_notify() 40 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("month", 5), in aiot_device_ntp_notify() 42 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("day", 3), in aiot_device_ntp_notify() 44 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("hour", 4), in aiot_device_ntp_notify() 46 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("minute", 6), in aiot_device_ntp_notify() 48 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("second", 6), in aiot_device_ntp_notify() 50 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("msecond", 7), in aiot_device_ntp_notify() 52 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("timestamp", 9), in aiot_device_ntp_notify()
|
A D | module_aiot_device.c | 126 mp_obj_new_str("topic", 5), in subcribe_cb() 129 MP_OBJ_FROM_PTR(ret_dict), mp_obj_new_str("payload", 7), in subcribe_cb() 159 mp_obj_dict_store(dict, mp_obj_new_str("code", 4), in aiot_device_notify() 162 mp_obj_new_str("msg_id", 6), in aiot_device_notify() 165 mp_obj_new_str("params_len", 10), in aiot_device_notify() 168 mp_obj_new_str("params", 6), in aiot_device_notify() 184 mp_obj_dict_store(dict, mp_obj_new_str("code", 4), in aiot_device_notify() 187 mp_obj_new_str("msg_id", 6), in aiot_device_notify() 193 mp_obj_new_str("params_len", 10), in aiot_device_notify() 196 mp_obj_new_str("params", 6), in aiot_device_notify() [all …]
|
A D | module_aiot_dynreg.c | 40 mp_obj_new_str(packet->data.device_info.device_secret, in pyamp_aiot_app_dynreg_recv_handler() 162 cb, mp_obj_new_str(device_secret, strlen(device_secret))); in pyamp_aiot_dynreg_http()
|
A D | module_aiot_gateway.c | 142 mp_obj_new_str("topic", 5), in subcribe_cb() 143 mp_obj_new_str(packet->data.pub.topic, packet->data.pub.topic_len)); in subcribe_cb() 144 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("payload", 7), in subcribe_cb() 145 mp_obj_new_str(packet->data.pub.payload, packet->data.pub.payload_len)); in subcribe_cb() 181 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("code", 4), in aiot_subdev_notify() 183 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("message", 7), in aiot_subdev_notify() 184 mp_obj_new_str(param->params, strlen(param->params))); in aiot_subdev_notify() 197 mp_obj_dict_store(dict, mp_obj_new_str("code", 4), in aiot_subdev_notify() 199 mp_obj_dict_store(dict, mp_obj_new_str("handle", 6), in aiot_subdev_notify()
|
A D | modlinkkit.c | 209 mp_obj_new_str(recv->data.property_set.params, in demo_dm_recv_handler() 251 mp_obj_new_str(recv->data.async_service_invoke.params, in demo_dm_recv_handler()
|
/AliOS-Things-master/components/py_engine/modules/ota/ |
A D | modappota.c | 378 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("length", 6), in ota_trigger_notify() 380 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("module_name", 11), in ota_trigger_notify() 381 mp_obj_new_str(ota_package_info->module_name, in ota_trigger_notify() 383 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("version", 7), in ota_trigger_notify() 384 mp_obj_new_str(ota_package_info->version, in ota_trigger_notify() 387 MP_OBJ_FROM_PTR(dict), mp_obj_new_str("url", 3), in ota_trigger_notify() 388 mp_obj_new_str(ota_package_info->url, strlen(ota_package_info->url))); in ota_trigger_notify() 390 MP_OBJ_FROM_PTR(dict), mp_obj_new_str("hash", 4), in ota_trigger_notify() 391 mp_obj_new_str(ota_package_info->hash, strlen(ota_package_info->hash))); in ota_trigger_notify() 403 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("hash_type", 9), in ota_trigger_notify() [all …]
|
/AliOS-Things-master/components/py_engine/modules/driver/ |
A D | rtc.c | 139 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("year", 4), in obj_getTime() 141 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("month", 5), in obj_getTime() 143 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("date", 4), in obj_getTime() 145 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("hr", 2), in obj_getTime() 147 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("min", 3), in obj_getTime() 149 mp_obj_dict_store(MP_OBJ_FROM_PTR(dict), mp_obj_new_str("sec", 3), in obj_getTime()
|
A D | pwm.c | 211 mp_obj_dict_store(dict, mp_obj_new_str("freq", 4), in obj_getOption() 213 mp_obj_dict_store(dict, mp_obj_new_str("duty", 4), in obj_getOption()
|
/AliOS-Things-master/components/py_engine/modules/system/ |
A D | modsystem.c | 81 …mp_obj_dict_store(dict, mp_obj_new_str("total",strlen("total")), mp_obj_new_int(heap_info.heap_tot… in obj_getMemory() 82 …mp_obj_dict_store(dict, mp_obj_new_str("used",strlen("used")), mp_obj_new_int(heap_info.heap_used)… in obj_getMemory() 83 …mp_obj_dict_store(dict, mp_obj_new_str("free",strlen("free")), mp_obj_new_int(heap_info.heap_free)… in obj_getMemory()
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | utility.c | 40 return mp_obj_new_str(data, strlen(data)); in mp_obj_new_strn()
|
A D | moduos.c | 469 return mp_obj_new_str(s, strlen(s)); in mod_os_getenv() 594 t->items[0] = mp_obj_new_str(dirent->d_name, strlen(dirent->d_name)); in listdir_next() 691 return mp_obj_new_str(ret, strlen(ret)); in mod_os_getcwd()
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | utility.c | 40 return mp_obj_new_str(data, strlen(data)); in mp_obj_new_strn()
|
A D | moduos.c | 469 return mp_obj_new_str(s, strlen(s)); in mod_os_getenv() 594 t->items[0] = mp_obj_new_str(dirent->d_name, strlen(dirent->d_name)); in listdir_next() 691 return mp_obj_new_str(ret, strlen(ret)); in mod_os_getcwd()
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | utility.c | 42 return mp_obj_new_str(data, strlen(data)); in mp_obj_new_strn()
|
A D | moduos.c | 477 return mp_obj_new_str(s, strlen(s)); in mod_os_getenv() 607 t->items[0] = mp_obj_new_str(dirent->d_name, strlen(dirent->d_name)); in listdir_next() 710 return mp_obj_new_str(ret, strlen(ret)); in mod_os_getcwd()
|
/AliOS-Things-master/components/py_engine/modules/network/http/ |
A D | modhttp.c | 153 mp_obj_new_str("header", 6), in http_request_notify() 154 mp_obj_new_str(msg->rec_header_buffer, strlen(msg->rec_header_buffer))); in http_request_notify() 156 mp_obj_new_str("body", 4), in http_request_notify() 157 mp_obj_new_str(msg->rec_data_buffer, strlen(msg->rec_data_buffer))); in http_request_notify() 172 mp_obj_new_str(msg->rec_data_buffer, strlen(msg->rec_data_buffer))); in http_download_notify()
|
/AliOS-Things-master/components/py_engine/engine/shared/netutils/ |
A D | netutils.c | 44 return mp_obj_new_str(ip_str, ip_len); in netutils_format_ipv4_addr()
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | vfs_reader.c | 75 mp_obj_new_str(filename, strlen(filename)), in mp_reader_new_file()
|
A D | vfs_posix.c | 64 return mp_obj_new_str(self->root.buf, self->root.len); in vfs_posix_get_path_obj() 156 return mp_obj_new_str(ret, strlen(ret)); in vfs_posix_getcwd() 195 t->items[0] = mp_obj_new_str(fn, strlen(fn)); in vfs_posix_ilistdir_it_iternext()
|
A D | vfs_fat.c | 143 t->items[0] = mp_obj_new_str(fn, strlen(fn)); in mp_vfs_fat_ilistdir_it_iternext() 283 return mp_obj_new_str(buf, strlen(buf)); in fat_vfs_getcwd()
|
/AliOS-Things-master/components/py_engine/modules/audio/ |
A D | uvoiceplayer.c | 509 mp_obj_new_str(info.name, strlen(info.name))); in uvoice_get_mediainfo() 511 mp_obj_new_str(info.author, strlen(info.author))); in uvoice_get_mediainfo() 513 mp_obj_new_str(info.album, strlen(info.album))); in uvoice_get_mediainfo() 515 mp_obj_new_str(info.year, strlen(info.year))); in uvoice_get_mediainfo()
|
/AliOS-Things-master/components/py_engine/modules/mqtt/ |
A D | mqttclient.c | 53 mp_obj_new_str(md->topicName->lenstring.data, in messageArrived() 55 mp_obj_new_str((char *)message->payload, (int)message->payloadlen)); in messageArrived()
|
/AliOS-Things-master/components/py_engine/modules/kv/ |
A D | modkv.c | 70 mp_obj_t val_str = mp_obj_new_str(value, strlen(value)); in obj_getStorageSync()
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | builtinhelp.c | 72 mp_obj_list_append(list, mp_obj_new_str(name, l - 3)); in mp_help_add_from_names()
|
A D | dynruntime.h | 107 #define mp_obj_new_str(data, len) (mp_fun_table.obj_new_str((data), (len))) macro 130 return mp_obj_new_str((const char *)data, len); in mp_obj_new_str_of_type_dyn()
|