Skip to content

Latest commit

 

History

History

esp32_lora

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Forward energy usage to LoraWAN (The Things Network)

  • Rename keys.h.example to keys.h and insert your own DEVEUI and APPKEY
  • Use the following uplink payload formatter:
function decodeUplink(input) {
  var data = {};
  var str = String.fromCharCode.apply(null, input.bytes).trim();
  data.raw = str;
  if (str > 0) {
    data.kwh = str;
  }
  return {
    data: data,
    warnings: [],
    errors: []
  };
}