Timeline for How to convert byte array into a single variable
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 5, 2018 at 14:28 | vote | accept | Eza | ||
Nov 4, 2018 at 17:52 | answer | added | Juraj♦ | timeline score: 0 | |
Nov 4, 2018 at 13:18 | history | edited | Eza | CC BY-SA 4.0 |
added 3 characters in body
|
Nov 4, 2018 at 13:16 | comment | added | Mikael Patel | There are several simple errors: 1) "atol(x)" should be "atol(tmp)", 2) but then "tmp" should be null-terminated, 3) which then implies that it is too short. And so on. | |
Nov 4, 2018 at 13:12 | comment | added | Majenko | arduino.stackexchange.com/questions/53258/… | |
Nov 4, 2018 at 13:11 | comment | added | Majenko | I have no idea about the MySQL side of things, but you can take each byte in the array, turn it into a text representation of a hexadecimal pair, concatenate them all in a string, and use that string. | |
Nov 4, 2018 at 13:09 | comment | added | Eza | Ok @Majenko but is there any way to push complete an array to MySQL into a single table cell using nodemcu? | |
Nov 4, 2018 at 13:05 | history | edited | Eza | CC BY-SA 4.0 |
added 43 characters in body
|
Nov 4, 2018 at 13:01 | comment | added | Majenko | There is no such thing as a single variable that is 160 bits in size. I think you want to format the bytes as a string (and there are plenty of questions about that on here). | |
Nov 4, 2018 at 12:51 | history | asked | Eza | CC BY-SA 4.0 |