diff options
author | Harsh Sharma <92harshsharma@gmail.com> | 2018-06-13 13:48:10 -0500 |
---|---|---|
committer | Harsh Sharma <92harshsharma@gmail.com> | 2018-06-13 13:48:10 -0500 |
commit | c6d6a978b1df9a1b69453f8db51e7f16ae878a64 (patch) | |
tree | f9f56db26db735dbcda6bfcf5e99635e5d82f88f | |
parent | 9597666d1fe7f18c789f8688ecd5e7ec3e9ab801 (diff) | |
download | packet_forwarder_mtac_full-c6d6a978b1df9a1b69453f8db51e7f16ae878a64.tar.gz packet_forwarder_mtac_full-c6d6a978b1df9a1b69453f8db51e7f16ae878a64.tar.bz2 packet_forwarder_mtac_full-c6d6a978b1df9a1b69453f8db51e7f16ae878a64.zip |
Applied patch: lora-packet-forwarder-add-no-header-option0.1
-rw-r--r-- | lora_pkt_fwd/src/lora_pkt_fwd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lora_pkt_fwd/src/lora_pkt_fwd.c b/lora_pkt_fwd/src/lora_pkt_fwd.c index 811dee3..ca19e28 100644 --- a/lora_pkt_fwd/src/lora_pkt_fwd.c +++ b/lora_pkt_fwd/src/lora_pkt_fwd.c @@ -2334,6 +2334,12 @@ void thread_down(void) { txpkt.no_crc = (bool)json_value_get_boolean(val); } + /* Parse "No Header" flag (optional field) */ + val = json_object_get_value(txpk_obj,"nhdr"); + if (val != NULL) { + txpkt.no_header = (bool)json_value_get_boolean(val); + } + /* parse target frequency (mandatory) */ val = json_object_get_value(txpk_obj,"freq"); if (val == NULL) { |