Comments (6)
I was thinking that it would be easier to connect to one broker first, i.e HiveMQ, then disconnect and connect to AWS. I found instrctions to connect to AWS here: https://how2electronics.com/connecting-esp32-to-amazon-aws-iot-core-using-mqtt/ , but am struggling to incorporate that code into your .ino file :( (c++ coding is not my forte!)
I'm inclined to go down the ESP32 TTN route using your code from here: https://github.com/matthias-bs/BresserWeatherSensorTTN then integrate AWS and MQTT from there.
I'll let you know how it goes!!
Cheers
Matt
from bresserweathersensorreceiver.
I dont see why not!, I'm sure I'll be quick to shout if i can't get your TTN code to work!!
from bresserweathersensorreceiver.
Hi,
Are you using the Arduino IDE for compiling? Your screenshots do not look familiar to me.
Arduino treats some things regarding header files in a special way...
Have you tried to include WeatherSensorCfg.h in WeatherSensor.h?
If you are using Arduino, it also makes a difference where the files are located - according to your screenshot, the header files and the WeatherSensor.cpp are not located in the same directory.
In WeatherSensor.cpp, WeatherSensorCfg.h is included before WeatherSensor.h, though.
Maybe you can try to use the directory structure of example/BresserWeatherSensorMQTTCustom for your project?
Best regards
Matthias
from bresserweathersensorreceiver.
Hi Matthias,
I tried using the MQTT code with my esp32, and it works :) Now I have another issue, I can publish a message to Hivemq, but I also need to publish it to AWS, is there a way to publish a second message to a different endpoint?
Cheers
Matt
from bresserweathersensorreceiver.
Hi,
that's nice to read!
If you want to publish your data to another MQTT broker, you need a second MQTTClient object for setting up and maintaining a separate connection.
I would try to set up the AWS connection first (if I remember correctly from reading about it, you really have to set up the correct security measures for this). In the second step, I would integrate both connections.
Maybe you cannot keep both connections in parallel (due to RAM limitations), but have to use them one after another.
Best regards
Matthias
from bresserweathersensorreceiver.
Can we close this issue then? Feel free to open another one with a different topic if required.
from bresserweathersensorreceiver.
Related Issues (20)
- Does it work with Bresser 3in1 as well? HOT 2
- Compatibility RFplayer HOT 1
- Radio sleep before ESP deep sleep to lower Power drain HOT 1
- decodeBresserLightningPayload(): Change counter decoding from binary to BCD
- Rain gauge no hour, day or week rapport HOT 3
- Config isn't saved HOT 4
- Unify RainGauge and Lightning classes
- New library -> adjust examples HOT 5
- MQTT example error affter upgrade
- Board Heltec WiFi Kit 32(V3) will not select SX1262 but SX1276 HOT 1
- Add support for Bresser CO2 PN 7009977 and HCHO/VOC PN 7009978 sensors
- Request for testing with Bresser CO2 sensor (P/N 7009977)
- Request for testing with Bresser HCHO/VOC sensor (P/N 7009978)
- Potential mix of weather sensor data using 6-in-1 decoder
- What receiver do you recommend? HOT 5
- rain implementation -> renew examples HOT 4
- Can't flash on Lilygo T3 V1.6.1 HOT 9
- Help with setting up Waldbeck Huygens weather station HOT 10
- Add support for M5Stack Core2 with Module LoRa868
- Add support for ESP32-S3 PowerFeather with Adafruit LoRa Radio FeatherWing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bresserweathersensorreceiver.