chirpstack / chirpstack-docker

Setup ChirpStack using Docker Compose
https://www.chirpstack.io/
MIT License
273 stars 316 forks source link

Failed to set MQTT backend protocol to JSON #81

Closed amoat7 closed 1 year ago

amoat7 commented 1 year ago

I'm using a RAK7289 gateway. So far, I've been successful in connecting the gateway to chirpstack and receiving messages in my MQTT broker when i use the protobuf protocol. When i change the protocol to JSON however in my RAK7289 gateway, chirpstack is unable to parse it even after I set json=true in my regional config file region_au915_0.toml. It still defaults to fault and I keep getting this error

INFO chirpstack::gateway::backend::mqtt: Message received from gateway region_config_id="au915_0" topic="au915_0/gateway/********/event/stats" qos=1 json=false

How do i resolve this?

robsonos commented 1 year ago

I am having a similar problem but with the RAK7248 and RAK7249

brocaar commented 1 year ago

When i change the protocol to JSON however in my RAK7289 gateway, chirpstack is unable to parse it

I'm going to close this issue, as it is not related to the Docker Compose example. Could you please create an issue in the ChirpStack repository with the steps needed to reproduce the issue?

Please also include version numbers + if you are using the Gateway Bridge or MQTT Forwarder.

Thanks!

robsonos commented 1 year ago

Hi.

I just want to add that I figured out what the problem was. Both my gateways were configured to use FSB 2, which is au915_1 instead of au915_0. Once I changed that it all started working. In my case I changed the bridge and application configuration, but it would also work if the changes were in the gateway instead.

Cheer