here is a code for lmic and cayenne lpp Uplink and downlink CayenneLPP payload to TTN using LMIC library - #13 by shramik_salgaonkar