use lorcomm send_message
This commit is contained in:
parent
cf3df53b18
commit
dd3c6f7190
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@
|
|||
#include "argtable3/argtable3.h"
|
||||
|
||||
#include "esp32-lora.h"
|
||||
#include "lorcomm.h"
|
||||
#include "main.h"
|
||||
|
||||
static struct {
|
||||
struct arg_str *msg;
|
||||
|
@ -21,7 +23,7 @@ int send(int argc, char **argv) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
lora32_send((lora32_cfg_t*)send_args.lora, send_args.msg->sval[0], strlen(send_args.msg->sval[0]));
|
||||
send_message((lora32_cfg_t*)send_args.lora, send_args.msg->sval[0]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue