diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-03-30 13:22:19 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-03-30 13:22:19 +0200 |
commit | c6962c5700f99441538dafa346626bb7e6d12488 (patch) | |
tree | f463808368735c290312b7bff906f2599293d0ac /fw/fe310/test/cell_pdp.c | |
parent | 0a5f8363fe4e6b3c7d4f17fde61e00ab63e43bcb (diff) |
sock api fixed; net reply messages fixed
Diffstat (limited to 'fw/fe310/test/cell_pdp.c')
-rw-r--r-- | fw/fe310/test/cell_pdp.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fw/fe310/test/cell_pdp.c b/fw/fe310/test/cell_pdp.c index 9fc4a21..724cca7 100644 --- a/fw/fe310/test/cell_pdp.c +++ b/fw/fe310/test/cell_pdp.c @@ -17,9 +17,9 @@ #include <eve/widget/widgets.h> -#include <app/app_root.h> +#include "app/app_root.h" +#include "app/app_status.h" -#include "status.h" #include "cell_pdp.h" static void cell_pdp_connect(char *apn, char *user, char *pass) { @@ -34,17 +34,16 @@ static void cell_pdp_connect(char *apn, char *user, char *pass) { p += strlen(user) + 1; strcpy(p, pass); p += strlen(pass) + 1; - eos_net_send(EOS_NET_MTYPE_CELL, buffer, p - buffer, 1); + eos_net_send(EOS_NET_MTYPE_CELL, buffer, p - buffer); - buffer = eos_net_alloc(); buffer[0] = EOS_CELL_MTYPE_PDP | EOS_CELL_MTYPE_PDP_CONNECT; - eos_net_send(EOS_NET_MTYPE_CELL, buffer, 1, 0); + eos_net_send_async(EOS_NET_MTYPE_CELL, buffer, 1, 0); } static void cell_pdp_disconnect(void) { unsigned char *buffer = eos_net_alloc(); buffer[0] = EOS_CELL_MTYPE_PDP | EOS_CELL_MTYPE_PDP_DISCONNECT; - eos_net_send(EOS_NET_MTYPE_CELL, buffer, 1, 0); + eos_net_send_async(EOS_NET_MTYPE_CELL, buffer, 1, 0); } static void cell_pdp_handler(unsigned char type, unsigned char *buffer, uint16_t size) { |