UDP datagram sending

Problem solved,

It was caused by netreg registering. The msg queue initialization is performed inside the thread, so if it has lower priority or the scheduler is not called after thread creation the gnrc_netreg_register() fails.

The solution was to register this thread after message queue initialization. So after i placed the gnrc_netreg_register() inside the thread function all works fine.

Many thanks :slight_smile:

Hi Mateusz,

nice! I was just about to start looking into it. For the next time I recommend to work in branches. (i) It is the "RIOT-way" and (ii) it makes reviewing your changes a lot easier.

Cheers Peter