-
-
-
Yes, definitely - on my way but struggling a fresh LINUX build and a working connecting via tcp.
-
-
-
Found this link and started with this:
var header = { "alg": "HS256", "typ": "JWT" }; var data = { "id": 1337, "username": "john.doe" }; var encodedHeader = btoa(JSON.stringify(header)); var encodedData = btoa(JSON.stringify(data)); var token = encodedHeader + "." + encodedData; var secret = "My very confidential secret!"; print(token); /* struggled at this point, no clue if there i an existing solution for this var signature = CryptoJS.HmacSHA256(token, secret); */ signature = btoa(signature); var signedToken = token + "." + signature;
Any hints howto?
-
-
@Gordon is there a chance that mbedtls will be updated?
-
-
-
-
Found this nice online ESP Stack Trace Decoder developed by Maxime BORGES.
-
-
Sharing a way how to setup neopixel, set color and send simple patterns - Many thanks to @Gordon who mentioned this possibility via Uint24Array().
// load module var np = require('neopixel'); // pin data line is attached to var NPP= D16; // number of neopixel var countNP = 100; // use Uint24Array to store an address single pixel var neopixelStrip = new Uint24Array(countNP); // set color for first and last pixel var color = {r:20,g:0,b:20}; var c = color.g + (color.r << 8) + (color.b << 16); neopixelStrip.buffer[0] = c; neopixelStrip.buffer[countNP-1] = c; // flip neopixel np.write(NPP, neopixelStrip.buffer);
Send a pattern all over the neopixel strip
// Solution A // simple pattern "_ _ Green _ _" var fiveLEDs = new Uint24Array(5); fiveLEDs[2] = 30; // fill buffer with a pattern array and count var nps = E.toUint8Array({data:fiveLEDs.buffer,count:20}); // Solution B // fill buffer with pattern for ( i = 2; i < countNP; i +=5 ) { neopixelStrip.buffer[i] = 30;
-
-
look for module https://www.espruino.com/tinyMQTT
-
-
-
-
-
-
-
got it