I'm creating a real-time vehicle tracking Android application using the Arduino Uno and SIM900 GPS. I want to use Firebase as the database for the coordinates which will hold just the longitude and latitude. My question is about sending the data through the GPRS to Firebase. Right now I've only been able to use a terminal program to send AT commands to create a connection but I've been getting errors when connecting to firebase using AT+CIPSEND. I know that it only excepts https traffic so I've been trying commands from here. Here is some code that I've tried:
AT OK AT+CREG? +CREG: 0,1 OK AT+CGATT? +CGATT: 1 OK AT+CIPSTATUS OK STATE: IP INITIAL AT+CIPMUX=0 OK AT+CSTT="att.mvno","","" OK AT+CIICR OK AT+CIPSTART="TCP","https://mygpstracker.firebaseio.com","80" OK CONNECT OK
AT+CIPSHUT OK AT+CIPSTART="TCP","https://mygpstracker.firebaseio.com","443" OK CONNECT OK
If I use CIPSEND, how should my message be formatted to send lat or long in a way Firebase can interpret? Or am I going about this in a convoluted manner? Is there an easier way? I appreciate any help/comment. Thank you.