Does any one know how to publish a message to the TTN using the code below:
var ttn = require(âttnâ);
var appEUI = âxxxxxxxxxxâ;
var accessKey = â********************************************â;
var client = new ttn.Client(âstaging.thethingsnetwork.orgâ, appEUI, accessKey);
client.on(âuplinkâ, function (msg) {
console.log(âReceived messageâ, msg);
});
client.on(âactivationâ, function (msg) {
console.log(âDevice activated:â, msg.devEUI);
});
@MikeAski: ok, now I see why you said you didnât find a definitive answer to whether downlink is supported or not. So, to clarify a bit more: downlink is supported as of today, support is limited to Class A devices.
payload(PayloadArray | PayloadRaw | String | PayloadFields) The raw payload as a Buffer, an Array of numbers, a hex string or an object of payload fields.