I have heard bits about CoAP in the past, never thought past that. Looks like CoAP could be a good simple interface for IoT builds. This one is getting sensor data out to the rest of the system
https://www.instructables.com/id/Serial-Data-From-Arduino-to-Raspberry-Pi-to-MySQL-/