There is a complete set of network functions defined that could be an inspiration for you.
This should have some advantages:
a/ Gordon could probably implement all by using "require" if ESP modul with AT commnads is used with Espruino,
b/ Neil could implement these functions direct in JS for ESP (the functions are already written by creators of nodeMCU),
c/ the users of both HW solutions will use the same language and interface.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
If I understand the contents of discussion I would recommend to look at nodeMCU
https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en
There is a complete set of network functions defined that could be an inspiration for you.
This should have some advantages:
a/ Gordon could probably implement all by using "require" if ESP modul with AT commnads is used with Espruino,
b/ Neil could implement these functions direct in JS for ESP (the functions are already written by creators of nodeMCU),
c/ the users of both HW solutions will use the same language and interface.
P.S. Sorry, English is not my mother language.
1 Attachment