No video

Thread network technology - 06 CoAP (practical example)

  Рет қаралды 3,552

WSN & IoT

WSN & IoT

Күн бұрын

Пікірлер: 8
@vigneshs6232
@vigneshs6232 2 жыл бұрын
Practical example is so much Knowledgeable....Thankyou ....
@maltevo8691
@maltevo8691 Ай бұрын
Thank you for this brilliant example! I know that this is a basic c question but: how do I convert a real int8_t temperatureValue into this JSON?
@wsniot
@wsniot Ай бұрын
You can use the function sprintf for example to generate a Json-String: static uint8_t buf[20]; static int buf_length; static int counter=0; while (1) { k_msleep(1000); buf_length= sprintf(buf, "{\"Counter: %d ", counter\"}); counter++; }
@thongphan4277
@thongphan4277 2 жыл бұрын
You save my life !!!
@Microcontrollerslab
@Microcontrollerslab Жыл бұрын
What if the end device is using a different application layers such as MQTT-SN and the border router is using a different application layer such as COAP? will this work? Also what if client uses MQTT-SN and server uses COAP?
@wsniot
@wsniot Жыл бұрын
Only same protocols can communicate with each other. The layer doesn't matter. CoAP with CoAP, MQTT with MQTT, TCP with TCP,... If your server doesn't know MQTT, it won't understand the message. However, forwarding to an MQTT server or client is already possible, since IPv6 is used for this. In theory, you can also implement a CoAP server or MQTT server on your BorderRouter. But that has nothing to do with the BorderRouter functionality. BorderRouter only connects the Thread network to another IP network, generally your LAN.
@Microcontrollerslab
@Microcontrollerslab Жыл бұрын
​@@wsniot If you have end devices from different vendors using different application layer protocols, it can be a challenge for the border router to understand the messages being sent between these devices. In this scenario, the border router may need to support all protocols used by the end devices in order to effectively communicate with them. This lack of standardization can prevent devices from being able to communicate with each other and can limit interoperability. Isn't it?
@sultanalshehri9401
@sultanalshehri9401 Жыл бұрын
Please provide your personal email here for further implementations, thank you
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Wian
Рет қаралды 14 МЛН
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 4,3 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 7 МЛН
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Wian
Рет қаралды 14 МЛН