Hello. First of all, I apologize if I opened the topic in the wrong place.
While examining the MQTT Client topic on the wiki page, I did not understand some points. Can you help me?
I examined the ESP8266 example. In this example, the value received from the potentiometer is sent to the mqtt server. As far as I understand, the ESP8266 is connected to Pic16f18877. Why don't we just use esp8266? Why don't we connect the potentiometer directly to esp8266 and send the value we read directly to the mqtt server?
In other words, we don't connect a potentiometer to the nodemcu and send the value we read to the mqtt server?
MQTT Client topic on the wiki page, I did not understand some points
-
- Posts: 41
- http://meble-kuchenne.info.pl
- Joined: Sun Mar 21, 2021 2:13 pm
- Has thanked: 18 times
- Been thanked: 1 time
-
- Valued Contributor
- Posts: 1434
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 337 times
- Been thanked: 497 times
Re: MQTT Client topic on the wiki page, I did not understand some points
Hi
At present Flowcode does not support the ESP8266 as a target (i.e. a microcontroller), instead it is a component that is controlled by sending AT Commands to the ESP8266 via UART(s).
As Flowcode is target independent you can easily port code from one chip to another. You can also use the priniciples in the WiKi examples and incorporate them into your own creations, such as those that already incorporate WiFi (for example ESP32 or RPi).
Regards
At present Flowcode does not support the ESP8266 as a target (i.e. a microcontroller), instead it is a component that is controlled by sending AT Commands to the ESP8266 via UART(s).
As Flowcode is target independent you can easily port code from one chip to another. You can also use the priniciples in the WiKi examples and incorporate them into your own creations, such as those that already incorporate WiFi (for example ESP32 or RPi).
Regards
Re: MQTT Client topic on the wiki page, I did not understand some points
Thank you very much for your quick response.chipfryer27 wrote: ↑Tue Jan 14, 2025 9:22 pmHi
At present Flowcode does not support the ESP8266 as a target (i.e. a microcontroller), instead it is a component that is controlled by sending AT Commands to the ESP8266 via UART(s).
As Flowcode is target independent you can easily port code from one chip to another. You can also use the priniciples in the WiKi examples and incorporate them into your own creations.
Regards
I have two questions.
1- We connect esp8266 to pic16f18877. We compile the example on the wiki page and upload it to pic16f18877. Thus, we can send the value we read from the potentiometer to the mqtt server. Did I understand correctly?
2- Can we connect a potentiometer to one of the ADC inputs of ESP32 and send the value we read to the MQTT server? If we can, the components we need to use should be Mqtt Client and Networks Comms, did I understand correctly?
-
- Valued Contributor
- Posts: 1434
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 337 times
- Been thanked: 497 times
Re: MQTT Client topic on the wiki page, I did not understand some points
Hi
You are correct.
The PIC16F18877 is doing all the work and just using the ESP8266 as a means to communicate with the MQTT server. That chip is of course grossly overpowered for just updating MQTT, but it serves as an example.
You can of course use an ESP32 (or RPi) which have their own inbuilt WiFi. You will need the ESP32 WiFi component too, but other than that you should be good.
Regards
You are correct.
The PIC16F18877 is doing all the work and just using the ESP8266 as a means to communicate with the MQTT server. That chip is of course grossly overpowered for just updating MQTT, but it serves as an example.
You can of course use an ESP32 (or RPi) which have their own inbuilt WiFi. You will need the ESP32 WiFi component too, but other than that you should be good.
Regards