summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Sharma <92harshsharma@gmail.com>2018-06-13 13:48:10 -0500
committerHarsh Sharma <92harshsharma@gmail.com>2018-06-13 13:48:10 -0500
commitc6d6a978b1df9a1b69453f8db51e7f16ae878a64 (patch)
treef9f56db26db735dbcda6bfcf5e99635e5d82f88f
parent9597666d1fe7f18c789f8688ecd5e7ec3e9ab801 (diff)
downloadpacket_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.c6
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) {