Write a Python script to convert the data received by a RF module in JSON format. Make a packet of multiple JSONs. And then send it to PHP server. If sending will be fail, then store the data into temporary file. When internet is active then try to send it again and delete the data from file.
Reception on RF module code is ready. Data received from RF module will be in string format.