I have created an app for a project. In this project, the app connects via Bluetooth to Argon and sends network info to, hopefully, initializing it’s network parameters.
I need to convert ASCII Dec serial data stored as a string to ASCII characters stored as a string and push to network connection passing SSID & network password.
I have a string that is this:
83 83 73 68 58 72 111 109 101 78 101 116 119 111 114 107 124 80 87 68 58 49 53 70 69 54 51 67 56 66 52 52 65 54 49 57 50
Which is when sent via Serial.write:
SSID:HomeNetwork|PWD:15FE63C8B44A6192
I need to reconvert this numeric ASCII (83 83 73 68 58 72…) to characters (SSID:H). I can then split this up and store this SSID and network password into variables and then push those to the device’s network connection details.
So the device has the info on it. It is formatted to convert correctly (all decimal number/characters are within ASCII range: 32-122). I am still unable to get a proper conversion. Tried many different ways but still stumped as every attempt to convert either return a number, or an error. Has anyone hit this wall before? If so, please provide your working example or point to where one is… or at minimum, who to do this.
Lastly, eventually, when I have this converted data stored into string variables, I will need to have it initialize or replace network connection info on the Argon, most likely with the device name included. I am looking to have two devices shipped to a customer, including all operating code on each device’s to perform the necessary functions. Since I cannot determine the network info required, I chose to send it via Bluetooth to both devices and then have the device connect to the network. I see no other way for an end user without a complicated procedure.
Many, many, TIA’s as I have been stuck here for over a week.