Recode rpi library to send data in the format we expect on the server