gnrc_networking packets incoming

Hi all, In case that i could not use CoAP for request messages, i tried to build on a communication using the “gnrc_networking” code. Obviously the communication works, but where and how can i retrive the payload of the incoming packets? My collector node (SAMR21) has to process the content of the incoming packets from DHT sensor node (this is SAMR21 too).

thanks all,

Hi Alessandro,

gnrc_networking registers the "pkt_dump" module as UDP server.

https://github.com/RIOT-OS/RIOT/blob/master/examples/gnrc_networking/udp.c#L108

You can find the implementation here:

https://github.com/RIOT-OS/RIOT/blob/master/sys/net/gnrc/pktdump/gnrc_pktdump.c .

Just write your own minimal server and register its pid instead of the pkt_dump module. You should additionally remove USEMODULE += gnrc_pktdump from the Makefile.

Best Peter