MQTT Client topic on the wiki page, I did not understand some points

For general Flowcode discussion that does not belong in the other sections.
Post Reply
ayhan1
Posts: 41
http://meble-kuchenne.info.pl
Joined: Sun Mar 21, 2021 2:13 pm
Has thanked: 18 times
Been thanked: 1 time

MQTT Client topic on the wiki page, I did not understand some points

Post by ayhan1 »

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?

chipfryer27
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

Post by chipfryer27 »

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

ayhan1
Posts: 41
Joined: Sun Mar 21, 2021 2:13 pm
Has thanked: 18 times
Been thanked: 1 time

Re: MQTT Client topic on the wiki page, I did not understand some points

Post by ayhan1 »

chipfryer27 wrote:
Tue Jan 14, 2025 9:22 pm
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.

Regards
Thank you very much for your quick response.
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?

chipfryer27
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

Post by chipfryer27 »

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

Post Reply