var wifi = require("Wifi");
var http = require("http");
wifi.connect('YYYY', {password:'XXXX'}, function(e) {
if (e) {
console.log('error during connect:',e);
wifi.disconnect();
} else {
console.log('connected to wifi');
wifi.stopAP();
//wifi.save();
http.get("https://jsonplaceholder.typicode.com/posts/1", function(res) {
res.on('data', function(data) {
console.log(data);
});
});
}
});
Actual arduino uno log: Screenshot in attachments
Excepted log:
connected to wifi
{
"userId": 1,
"id": 1,
"title": "sunt aut facere repellat provident occaecati excepturi o
ptio reprehenderit",
"body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto"
}
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.
Hello, I am trying to read ESP-01 (ESP8266) Espruino log with Arduino UNO by serial and not works correctly.
My Arduino UNO code:
Espruino code:
Actual arduino uno log: Screenshot in attachments
Excepted log:
1 Attachment