matthias-bs / BresserWeatherSensorReceiver

Bresser 5-in-1/6-in-1/7-in-1 868 MHz Weather Sensor Radio Receiver for Arduino based on CC1101, SX1276/RFM95W or SX1262
MIT License
113 stars 21 forks source link

Compile Error Wemos D1 mini with CC1101 with MQTT custom #120

Closed kroon040 closed 9 months ago

kroon040 commented 9 months ago

Context

exit status 1

Compilation error: exit status 1



**To Reproduce**
Steps to reproduce the behavior:
1. Step1 '...'
2. Step2 '....'
3. Step3 '....'
4. See error

**Expected behavior**
Gooed compiling

**Debug Log**
If applicable, add log file to help explain your problem.
 - Build log file (enable verbose output in the Arduino IDE: File->Preferences - "Show verbose output during: compile")
 - Serial console log file (see [Debug Output Configuration in Arduino IDE](https://github.com/matthias-bs/BresserWeatherSensorReceiver/blob/main/DEBUG_OUTPUT.md))

**Embedded Device (please complete the following information):**
 - Arduino IDE Version: 2.2.1
 -
 - ESP32/ESP8266 Board Support Package Version: 3.1.2
 - Library Version :??
 - Your Board: Wemos D1 mini
 - Selected Board in the Arduino IDE: [Wemos D1 mini
 - Your Radio Transceiver Module (if external): CC1101
 - **Pinning/Wiring**

**Additional context**
Add any other context about the problem here.
matthias-bs commented 9 months ago

The linker finds many symbols twice - once from a previous build and once from the current build. Please close the Arduino IDE, delete the folder /tmp/arduino/sketches/84A2F82A7D12FB5A4436CFA77D535BD8/ (as shown in your log file) - or everything in /tmp/arduino/sketches/ and try again.

kroon040 commented 9 months ago

It's now compiling. Wifi is connecting and than connecting to mqtt it reboots.

I change the port form 8883 to 1883 and use_wifi instead of Secure_wifi

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3424, room 16 
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8 
tail 0
chksum 0x2b
csum 0x2b
v000521b0
~ld
����g�r��o|�$�l`c��|{�d�o��o�d`��{�l�$��fpm close 1 
mode : sta(68:c6:3a:f4:4e:fe)
add if0
...scandone
state: 0 -> 2 (b0)
.state: 2 -> 3 (0)
state: 3 -> 2 (7a0)
.state: 2 -> 0 (4)
reconnect
..scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 17
cnt 

connected with kroonen, channel 8
dhcp client start...
ip:192.168.170.82,mask:255.255.255.0,gw:192.168.170.254
.Checking wifi...
MQTT connecting... 
--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Soft WDT reset
matthias-bs commented 9 months ago

Could you please provide the exception decoder output? Which version of the library are you using? Which "Core Debug Level" did you set in the Arduino IDE?

The only glitch I am currently aware of is in BresserWeatherSensorMQTTCustom/src/WeatherSensor.cpp (l. 195):

Please change

log_e("%s startReceive() failed, code %d", state);

to

log_e("%s startReceive() failed, code %d", RECEIVER_CHIP, state);

I doubt this is the cause.

kroon040 commented 9 months ago

I'm a bit further.

I now stuck on connect to the broker

connected with kroonen, channel 8 dhcp client start... ..ip:192.168.170.39,mask:255.255.255.0,gw:192.168.170.254 .Checking wifi... MQTT connecting... pm open,type:2 0..................

I have changed thte port to 1883 and also


// #define USE_SECUREWIFI        // use secure WIFI
#define USE_WIFI              // use non-secure WIFI
matthias-bs commented 9 months ago

If you are running your own broker, you can check the log files to see why the connection fails.

E.g. if connections on port 1883 are permitted.

kroon040 commented 9 months ago

Looking in the broker, and also MQTT explorer, I see the everything is working and getting data. I think the logging on the serial must be increased?

matthias-bs commented 9 months ago

Yes, for the ESP8266 you have to change it in the config header file.

kroon040 commented 9 months ago

I notriced taht the reception is not so weel, I ordered and TTG Lora esp32 , hopefully that will do better