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.56k stars 785 forks source link

RF signals receiving only works with active serial connection #523

Closed dandresm closed 4 years ago

dandresm commented 4 years ago

Hi, I have an ESP8266 (nodemceu v3) with RF and RF2 flashed on it using Platform IO. This is the environment I have used for it:

[env:nodemcuv2-custom]
platform = ${com.esp8266_platform}
board = nodemcuv2
lib_deps =
  ;COMMON
  ${com-esp.lib_deps}
  ${libraries.esp8266_mdns}
  ;RC/RC2
  ${libraries.rc-switch}
  ;RC2
  ${libraries.newremoteswitch}
build_flags = 
  ${com-esp.build_flags}
  '-DZgatewayRF="RF"'
  '-DZgatewayRF="RF2"'
  '-DGateway_Name="OpenMQTTGateway"'
board_build.flash_mode = dout

It works fine when I use a serial connection (monitor) to the device, using Platform IO or even using screen command, but receiving RF signals is not working if I don't connect to it. I can see the device beeing connected to MQTT broker with online status, but anything else.

Thanks in advance.

dandresm commented 4 years ago

I have found a solution on this page: https://www.esp8266.com/viewtopic.php?f=32&t=11492 I just changed D3(0) pin by D4(2) pin for the receiver and now it works fine.