And I want to output that array using:
'''jsiConsolePrint();'''
Does jsIConsolePrint() only allow a string input? Do I need to for each through the array then store each segment of the array to a string?
The reason why I ask is. I tried to use a for each to loop through the array and output each segment of the array to the WebIDE and I expected to see the ascii representation of the hex value. However, I received what looked like all %.
The ascii representation should be:
kÁ¾â.@é=~s®-W¬·o¬E¯Q0ÈF£\äåûÁ
Rïö$EßO+A{æl7
I even tried placing the hex representation of the alphabet into the array; however, I still received all % as the output.
Eventually, my real world code will receive an encrypted JSON string and I would like to output the unencrypted JSON string to the WebIDE console. I have AES128-CBC encryption and decryption working (so I think, I don't want to jinx myself). I'm just having trouble outputting the text to the console.
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.
Let's say, for example, I have the following code:
And I want to output that array using:
'''jsiConsolePrint();'''
Does jsIConsolePrint() only allow a string input? Do I need to for each through the array then store each segment of the array to a string?
The reason why I ask is. I tried to use a for each to loop through the array and output each segment of the array to the WebIDE and I expected to see the ascii representation of the hex value. However, I received what looked like all %.
The ascii representation should be:
kÁ¾â.@é=~s®-W¬·o¬E¯Q0ÈF£\äåûÁ
Rïö$EßO+A{æl7
I even tried placing the hex representation of the alphabet into the array; however, I still received all % as the output.
Eventually, my real world code will receive an encrypted JSON string and I would like to output the unencrypted JSON string to the WebIDE console. I have AES128-CBC encryption and decryption working (so I think, I don't want to jinx myself). I'm just having trouble outputting the text to the console.