Update uinject.c
renaming overlapping function with coap causing the simulator to fail
@@ -33,7 +33,7 @@ static const uint8_t uinject_dst_addr[] = {
//=========================== prototypes ======================================
-void _sock_handler(sock_udp_t *sock, sock_async_flags_t type, void *arg);
+void uinject_sock_handler(sock_udp_t *sock, sock_async_flags_t type, void *arg);
void _uinject_timer_cb(opentimers_id_t id);
@@ -58,7 +58,7 @@ void uinject_init(void) {
openserial_printf("Created a UDP socket\n");
- sock_udp_set_cb(&_sock, _sock_handler, NULL);
+ sock_udp_set_cb(&_sock, uinject_sock_handler, NULL);
// start periodic timer
uinject_vars.period = UINJECT_PERIOD_MS;
@@ -76,7 +76,7 @@ void uinject_init(void) {
-void _sock_handler(sock_udp_t *sock, sock_async_flags_t type, void *arg) {
+void uinject_sock_handler(sock_udp_t *sock, sock_async_flags_t type, void *arg) {
(void) arg;
char buf[50];
