@Gordon yup, AES128_CBC_Encrypt_Buffer is fiddling with the data inside of in, errr. And I wonder why that is.....
{"PH":["Result",5.5],"EC":["Result",700],"ResTemp":["Result",137.5]}
int:
123,34,80,72,34,58,91,34,82,101,115,117,108,116,34,44,53,46,53,93,44,34,69,67,34,58,91,34,82,101,115,117,108,116,34,44,55,48,48,93,44,34,82,101,115,84,101,109,112,34,58,91,34,82,101,115,117,108,116,34,44,49,51,55,46,53,93,125,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
int as hex:
7b,22,50,48,22,3a,5b,22,52,65,73,75,6c,74,22,2c,35,2e,35,5d,2c,22,45,43,22,3a,5b,22,52,65,73,75,6c,74,22,2c,37,30,30,5d,2c,22,52,65,73,54,65,6d,70,22,3a,5b,22,52,65,73,75,6c,74,22,2c,31,33,37,2e,35,5d,7d,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
int as char:
{,",P,H,",:,[,",R,e,s,u,l,t,",,,5,.,5,],,,",E,C,",:,[,",R,e,s,u,l,t,",,,7,0,0,],,,",R,e,s,T,e,m,p,",:,[,",R,e,s,u,l,t,",,,1,3,7,.,5,],},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
And I don't have the slightest idea why AES_128_CBC_encrypt_Buffer is doing that.....
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.
@Gordon yup, AES128_CBC_Encrypt_Buffer is fiddling with the data inside of in, errr. And I wonder why that is.....
And I don't have the slightest idea why AES_128_CBC_encrypt_Buffer is doing that.....