Good day all,
I actually have an issue
I can get the CellId info of my loccation:
0,228,03,1771,2d6f,55,62
To get that value, I have to send AT+CENG=3 and then AT+CENG?
the I read the serial (_cell.read()) and store the response into buffer (char buffer[100]).
When finish, buffer dsplay
0,228,03,1771,2d6f,55,62
However, when I use those value to the OpenCellID web site (http://opencellid.org)(Go to Serach Location -> Cell Location) and I enter
mcc:228
mnc:3
lac:1771
cellid:2d6f,
it return me an error.
But if I convert 1771 and 2d6f from hexa to decimal and I try again it work!!
Then I have to find a way, to convert 1771 and 2d6f to have
0,228,03,6001,11631,55,62
.
At a point to my code and before sending the data, I have this
strncat(fix,"&lac=",BUFFERSIZE);
  get_value(buffer,3,",",get_val); // This will take 3rd value of buffer (1771)
// How to convert get_val value from hex to dec and to put it into fix which is a char
  strncat(fix,get_val,BUFFERSIZE); // and concatenate it to fix
At this point, how can I convert 1771 to 11631?. get_val is a char and contian 1771. And I would like concatenate 11631 instead of 1771. (1771 is the hex of 11631.
Do you see my worry?