I configured the lora server and logged-in the API by localhost. I wait for a mbus device to make my first test.

I would like to know,if the usage of API (in the browser) creates a new connection with a gateway and m-bus devices, and if i will be able to read a value or a telegram by the m-bus device.

I mean that,after the connection i will receive a value (13 Celcius degrees for a temperature device, for example) or a telegram packet which i have to make a new API (in Java for example) to decode it, in a number (integer or float)?

An other option is to setup a HTTP integration (this is a per application setting). In this case LoRa App Server will make a POST request to an endpoint that you have configured. The JSON payload is exactly the same as the JSON over MQTT payload. For integrations, see: https://docs.loraserver.io/lora-app-server/integrate/integrations/

Hey Orne!
My question concerns docker image of the server. I try to subscribe my mqtt client to the semtech-mote application which is a part of default installation. Tell me please some details about this application: what is the port for mqtt if it is a mqtt server, which topics it uses…or maybe it’s a ws related app.

Hey! Thanks for info but I need something different. Trying to say that docker image of the server (compact edition, not this one that you have pointed on the screen) has 1 builtin application for Handlers. It is called semtech-mote. So I just want to know how this application works.

I cant decrypt this on Node.red side.
On app-server i found this setting “Payload codec”.
and it gives me some choices: Caayenne LPP - didnt work and gives me same encrypted data, and Custom JavaScript codec functions:
but i dont know what i must change on this function. Should i paste here my fPort number? If yes what about bytes, where i must get it?

Basically i want to recieve in node.red something like this (data with object):
…
“fCnt”: 10, // frame-counter
"fPort": 5, // FPort
"data": “…”, // base64 encoded payload (decrypted)
“object”: { // decoded object (when application coded has been configured)
“temperatureSensor”: {“1”: 25},
“humiditySensor”: {“1”: 32}
}
}
as mentioned here - https://docs.loraserver.io/lora-app-server/integrate/data/
Also i saw this - https://godoc.org/github.com/brocaar/lorawan#EncryptFRMPayload but i dont know what to do exactley, should i just paste code from this link to Custom JavaScript codec functions in app-server or what?
Can @brocaar please guide me how to do this and if possible with some examples
Thanks alot

Please note that the data is not encrypted but base64 encoded. As the payload is basically an array of bytes, you either make sure that on the device you encode the data using the Cayenne LPP encoding, or you need to define your own decoder function to decode your data from an array of bytes to a JSON object.

For just an example, I am sending an Hex payload over the node. So at mosquitto subscribing I will receive encode in base 64. So I used some libraries that take the data, decode64 and encode16. That returns my original data sent by node.

Since LoRa App Server 0.19.0 you will also be able to see the live event logs for a given device. This will show the join, ack, error and uplink events and contain exactly the same data as the MQTT of HTTP integration messages. This is for debugging only, and is not a replacement for building integrations.

LoRa App Server 0.19.0
Features:
Global search on organizations, applications, devices and gateways.
Display live device events (the same data as publised over MQTT).
See also Event logging.
Improvements:
When creating an application, show a warning when no service-profile exists.
When creating a gateway, show a warning when no network-server has been associated.
When creating a device, show a warning when no device-profile exists.
Bugfixes:
Fix organization selector (which would someti…