You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I send data to Adafruit it is base64 encoded (I don't want to use cayanneLPP). Could we have a simple function here that just shows how to decode base64, or am I missing something that I can do from the console?
Should be something along theses lines
function Decoder(bytes, port) {
return decoded;
}
// Define the string
var decodedStringBtoA = 'Hello World!';
// Encode the String
var encodedStringBtoA = btoa(decodedStringBtoA);
console.log(encodedStringBtoA);
// Define the string
var encodedStringAtoB = 'SGVsbG8gV29ybGQh';
// Decode the String
var decodedStringAtoB = atob(encodedStringAtoB);
console.log(decodedStringAtoB);
The text was updated successfully, but these errors were encountered:
When I send data to Adafruit it is base64 encoded (I don't want to use cayanneLPP). Could we have a simple function here that just shows how to decode base64, or am I missing something that I can do from the console?
Should be something along theses lines
The text was updated successfully, but these errors were encountered: