To send data to the Favoriot platform, you can use REST, MQTT, or CoAP protocols. Here’s how to proceed with each:
1. REST API
- Endpoint:
https://apiv2.favoriot.com/v2/streams - Method:
POST - Headers:
Content-Type: application/jsonapikey: <Your API Key>
- Body:
{
"device_developer_id": "<Your Device Developer ID>",
"data": {
"temperature": "25",
"humidity": "60"
}
}
2. MQTT
- Broker:
mqtt.favoriot.com - Ports:
- Non-secure:
1883 - Secure (TLS/SSL):
8883
- Non-secure:
- Credentials:
- Username:
<Your Device Access Token> - Password:
<Your Device Access Token>
- Username:
- Publish Topic:
<Your Device Access Token>/v2/streams - Message Payload:
{
"device_developer_id": "<Your Device Developer ID>",
"data": {
"temperature": "25",
"humidity": "60"
}
}
3. CoAP
- Endpoint:
coap://coap.favoriot.com/v2/streams - Method:
POST - Payload:
{
"method": "POST",
"apikey": "<Your API Key>",
"parameters": {
"device_developer_id": "<Your Device Developer ID>",
"data": {
"temperature": "25",
"humidity": "60"
}
}
}
Ensure that your device is registered on the Favoriot platform and that you have the correct device_developer_id and apikey or device access token. For detailed information, refer to the Favoriot Platform Documentation.
![[How-To] Send Data to the FAVORIOT Platform Using REST, MQTT and CoAP](https://iotworld.co/wp-content/uploads/2025/03/DALL·E-2025-03-17-09.06.25-A-professional-infographic-style-image-showcasing-how-to-send-data-to-the-Favoriot-platform-using-REST-API-MQTT-and-CoAP-in-a-landscape-format-with-.webp)





Leave a Reply