Hello,
Need some help with understanding some implementation.
1. I have Zolertia Z1 motes which are programmed as CoAP servers. These motes can respond to requests like GET and POST. Resources like Radio values (LQI/RSSI) could be GET, also Routing information (Parent info and Route Info) can be 'GET' which is in JSON format. All these are observable using the "smcpctl" without any problems.
2. The other task they also do is regularly send the EUI, temp, rssi, and up time count to a dedicated sink address in JSON format.
eg. {eui:xxxxxxxxxx, temp: xxxx mC, rssi: xx dBm count: xx} The sink is a linux based pc which is connected to a Raspberry Pi running the 6lbr implementation (
https://github.com/cetic/6lbr/wiki/) in router mode with slip-radio of contiki.
the WSN side has prefix of aaaa::/64 ===> [6lbr router]===> bbbb::xxxx==> bbbb::101/64 (linux PC sink address)
The connection and the coap server are programmed to get CON type. ACK is sent back from the sink pc.
This is possible just by running the Example-1 in the repository on the native linux PC
the figure for reference is shown below:
![]()
The task I want to achieve for NOW is just to try to get the sent data from the server on the PC. I presume I need to make it a CoAP client so that it sends ACK back and also tries getting in the data that was sent by the CoAP server.
Is there an example if i can refer too?
According to the figure the pc should be a CoAP server linked to MongoDB but that is NOT the focus for now..
Any guidance would be helpful.
thanks,
Shan