chirpstack / chirpstack-gateway-bridge

ChirpStack Gateway Bridge abstracts Packet Forwarder protocols into Protobuf or JSON over MQTT.
https://www.chirpstack.io
MIT License
423 stars 270 forks source link

Sending multiple device data in one message #88

Closed sahilgit closed 6 years ago

sahilgit commented 6 years ago

Is this a bug or a feature request?

feature request

What did you expect?

What happened?

I want to simulate the lora gateway bridge job with a node.js script I'm able to send one device message using this function : function push_data(){ var message=JSON.stringify({ "phyPayload": genererPHY('00748f51', "ffb77ef0dcf1ed3d5c529b0c4c65e774", "7ec915dd3fbdc7e48c5a24afa4baea59"), // base64 encoded LoRaWAN packet "rxInfo": { "board": 0, "antenna": 0, "channel": 1, "codeRate": "4/5", "crcStatus": 1, "dataRate": { "bandwidth": 125, "modulation": "LORA", "spreadFactor": 7 }, "frequency": 868300000, "loRaSNR": 7, "mac": "0000000000000001", "rfChain": 1, "rssi": -57, "size": 23, "time": "2018-07-10T12:26:30.222434Z" } } ); client.publish(push_data_topic, message,options,function (err) { if(err) console.error(err) else console.log("Data pushed with succes ") }); }

but now i'm trying to find a way to send multiple devices messages in the same time I tried to send an array of json payload exaple but it return an error

What version are your using?

How can your issue be reproduced?

Could you share your log output?