Have you seen this page? https://www.espruino.com/RN2483
That'll get you connected to the RN2483, and then it's a matter of connecting to LoRa.
It should be as easy as:
var RN2483 = require("RN2483"); Serial1.setup(57600, { tx:B6, rx:B7 }); var lora = new RN2483(Serial1, {reset:B3}); /* configure the LoRaWAN parameters devAddr = 4 byte address for this device as hex - eg. "01234567" nwkSKey = 16 byte network session key as hex - eg. "01234567012345670123456701234567" appSKey = 16 byte application session key as hex - eg. "01234567012345670123456701234567" */ lora .LoRaWAN = function (devAddr, nwkSKey, appSKey, function() { console.log("connected!"); lora.loraTX("Hello", function() { console.log("sent!"); }); });
But I don't have a LoRa base station set up here to test with I'm afraid. I'll see if there's anyone that has had it working that can confirm.
Are you ever in London for say, IoT meetups?
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Have you seen this page? https://www.espruino.com/RN2483
That'll get you connected to the RN2483, and then it's a matter of connecting to LoRa.
It should be as easy as:
But I don't have a LoRa base station set up here to test with I'm afraid. I'll see if there's anyone that has had it working that can confirm.