Giter VIP home page Giter VIP logo

Comments (6)

mczakk avatar mczakk commented on May 30, 2024 1

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.

mczakk avatar mczakk commented on May 30, 2024 1

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.

matthias-bs avatar matthias-bs commented on May 30, 2024

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.

mczakk avatar mczakk commented on May 30, 2024

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.

matthias-bs avatar matthias-bs commented on May 30, 2024

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.

matthias-bs avatar matthias-bs commented on May 30, 2024

Can we close this issue then? Feel free to open another one with a different topic if required.

from bresserweathersensorreceiver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.