I'm using a Microchip RN1810 wifi module to learn about how to send data (from a PIC24F32KA302) using ethernet /wifi to another device like my windows 10 PC. I'm reading the pressure, temperature and humidity from a BME280. I got that part working. Now I have to figure out the client/server thing and the actual sending of the data. I want to connect the RN1810 to my router. I realized that I can connect the RN1810 using UDP or TCP but that's just a connection, right?. Then, I need to send the actual data which seems to be up to me how/what to send? Is there a "standard" way of packaging/sending this kind of data that I'm not aware of?
BTW This is the first time I'm doing this wifi stuff so feel free to point out anything that seems wrong. I'm aware of the "not for new designs" status on the RN1810 though.