//TODO change values to match network.
 public DownlinkPktFwdMessage(string _data)
 {
     txpk = new Txpk()
     {
         imme = true,
         data = _data,
         size = (uint)(_data.Length * 3 / 4),
         freq = 868.100000,
         rfch = 0,
         modu = "LORA",
         datr = "SF11BW125",
         codr = "4/5",
         powe = 14
     };
 }
Ejemplo n.º 2
0
        //TODO change values to match network
        public DownlinkPktFwdMessage(string _data)
        {
            var byteData = Convert.FromBase64String(_data);

            txpk = new Txpk()
            {
                imme = true,
                data = _data,
                size = (uint)byteData.Length,
                freq = 869.525000,
                rfch = 0,
                modu = "LORA",
                datr = "SF12BW125",
                codr = "4/5",
                powe = 14
            };
        }
Ejemplo n.º 3
0
        public DownlinkPktFwdMessage(string _data, string _datr, uint _rfch, double _freq, long _tmst)
        {
            var byteData = Convert.FromBase64String(_data);

            txpk = new Txpk()
            {
                imme = false,
                tmst = _tmst,
                data = _data,
                size = (uint)byteData.Length,
                freq = _freq,
                rfch = _rfch,
                modu = "LORA",
                datr = _datr,
                codr = "4/5",
                powe = 14,
                ipol = true
            };
        }