From 63068875c5b3bb754af4fd5f8006f6d9c0435f7d Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 26 Apr 2017 01:06:42 +0300 Subject: [PATCH] zephyr/modusocket: Enable stream write() method. --- zephyr/modusocket.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zephyr/modusocket.c b/zephyr/modusocket.c index bd51e6f5db..e154fdfea9 100644 --- a/zephyr/modusocket.c +++ b/zephyr/modusocket.c @@ -449,6 +449,8 @@ STATIC const mp_map_elem_t socket_locals_dict_table[] = { { MP_OBJ_NEW_QSTR(MP_QSTR_accept), (mp_obj_t)&socket_accept_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_send), (mp_obj_t)&socket_send_obj }, { MP_OBJ_NEW_QSTR(MP_QSTR_recv), (mp_obj_t)&socket_recv_obj }, + + { MP_OBJ_NEW_QSTR(MP_QSTR_write), (mp_obj_t)&mp_stream_write_obj }, }; STATIC MP_DEFINE_CONST_DICT(socket_locals_dict, socket_locals_dict_table);