Closed Pritha01 closed 7 years ago
If you're using AVR, you can do something like this:
char latBuffer[20];
char lngBuffer[20];
double lat = gps.location.lat();
double lng = gps.location.lng();
dtostrf(lat, 8, 6, latBuffer);
dtostrf(lng, 8, 6, lngBuffer);
Thank you very much for this code nobodyguy, id got frustraded using sprintf...... Funny fact is that id not searched for this in context with sms. I want to send gps coordinates over LoRa.
You can check code for my LoRaWAN GPS tracker prototype if you want - https://gist.github.com/nobodyguy/7920482dd00f300b973126f9d7188db4
Hello! I have following function:
` bool sendLocation(char* number, char* latitude, char* longtitude) {
}`
Will it be fine if I define latitude & longitude as: char* latitude; char* longtitude;
How can I save the obtained latitude & longitude and then pass them into my function? Please help me.