1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.54k stars 782 forks source link

RFM69 radio does not send in beta0.9 v #324

Closed wolass closed 5 years ago

wolass commented 5 years ago

I observed that the same code that works in the 0.8 does not work under 0.9 beta.

The sending through RFM69 radio from the gateway based on Wemos D1 mini, does not work. However the receiving works in the 0.9.

To Reproduce Steps to reproduce the behavior:

  1. load the standard code of the OMG on a Wemos D1 board
  2. Connect to the WiFi and MQTT networks
  3. publish anything on the home/OpenMQTTGateway/commands/MQTTtoRFM69 topic
  4. Observe in the serial monitor thet OMG prepares json buffer.
  5. Observe nothing on the other node.

Expected behavior I expected to see the sent data on a node set to promiscuous mode. Exactly that happens when I use 0.8 version.

Environment (please complete the following information):

NO COMPILATION ERRORS FOUND

rspaargaren commented 5 years ago

most probably related to the same issue. The 0.9 beta version does not send date via RF2 protocol the 0.8 is working. In the serial output I have the following lines:

RF_RECEIVER_PIN 0 ZgatewayRF2 setup done MQTT_MAX_PACKET_SIZE 1024 Setup OpenMQTTGateway end MQTT connection... Connected to broker Subscription OK to the subjects Hey I got a callback Storing signal Creating Json buffer Creating Json buffer Hey I got a callback Storing signal Creating Json buffer Creating Json buffer

So it calls creating Json buffer twice and I think the jsondata.success() is not triggered so it is not sending any data and message ("Data from JSON stored") is not displayed.

I am used a NodeMCU v3.

1technophile commented 5 years ago

Hello,

Supposing that you are using the same publishing syntax (not json) Could you try to uncomment simplepublishing and see if it works for you?

wolass commented 5 years ago

Well, I can confirm that commenting out simplepublishing does not result in any change. Still no sending and still no "Data from JSON stored" message.

1technophile commented 5 years ago

Thanks for pointing that. Corrected in master

1technophile commented 5 years ago

@wolass I close the issue, if it is still present don't hesitate to reopen it