Search found 8 matches

by hetvishah08
Fri May 31, 2019 10:36 am
Forum: General Discussion and Questions
Topic: MQTT on LAN using ESP32
Replies: 0
Views: 81

MQTT on LAN using ESP32

Can I use the umqtt.simple library on ESP32 DevkitC with LAN as my network? I tried using this library and it generated an error for connect(): from machine import Pin import micropython,network,time led = Pin(32, Pin.OUT, value=1) l = network.LAN(mdc = Pin(23), mdio = Pin(18), power = Pin(17), phy_...
by hetvishah08
Wed Jan 30, 2019 8:56 am
Forum: General Discussion and Questions
Topic: Settime() function issue in ESP32
Replies: 0
Views: 170

Settime() function issue in ESP32

I am trying to receive current time for an application on ESP32 DevkitC. I am using Ethernet as my network and using ntptime library and settime() function. I keep on getting this error. Code and Debug Messages: >>> from machine import Pin >>> import network >>> l = network.LAN(mdc = Pin(23), mdio =...
by hetvishah08
Tue Jan 29, 2019 6:01 am
Forum: General Discussion and Questions
Topic: Sending float data type on UART using ESP32
Replies: 7
Views: 376

Re: Sending float data type on UART using ESP32

Here is how i used it:

Code: Select all

>>> from machine import UART
>>> list1 = [1.23,4.55,678.55,347843.484]
>>> list2=str(list1)
>>> u2=UART(2,9600)
I (104379) uart: ALREADY NULL
>>> u2.init(9600,bits=8,parity=None,stop=1, tx=17,rx=16)
>>> u2.write(list2)
30
OUTPUT on TERMINAL:
[1.23, 4.55, 678.55, 347843.5]
by hetvishah08
Thu Jan 24, 2019 11:27 am
Forum: General Discussion and Questions
Topic: Continous time check
Replies: 1
Views: 186

Continous time check

Hello, I am developing an application using ESP32 DevkitC where i need current time to compare it and if the time is correct it would proceed to other conditions but the time i receive is Jan 1,2000. I want the current time.I used the localtime function from the time module. >>> import time >>> time...
by hetvishah08
Thu Jan 24, 2019 7:03 am
Forum: General Discussion and Questions
Topic: Sending float data type on UART using ESP32
Replies: 7
Views: 376

Re: Sending float data type on UART using ESP32

i used str(f) example and it worked.I used the same with the list and was able to send those numbers and receive it as it is.Thank you.
by hetvishah08
Wed Jan 23, 2019 12:42 pm
Forum: General Discussion and Questions
Topic: Sending float data type on UART using ESP32
Replies: 7
Views: 376

Re: Sending float data type on UART using ESP32

I want it in a human readable format.I am just sending numbers.I am receiving those numbers in int or float data type through Modbus TCP on ESP32 and want to send that data on UART2 to some other device.I want the data to be sent as it is. I am storing the data received through modbus tcp in a list ...
by hetvishah08
Wed Jan 23, 2019 12:37 pm
Forum: General Discussion and Questions
Topic: Sending float data type on UART using ESP32
Replies: 7
Views: 376

Re: Sending float data type on UART using ESP32

I want it in a human readable format.I am receiving that data through Modbus TCP and sending it on UART2.I stored the data in a list and want to send it as it is but UART cannot send int or float type.
by hetvishah08
Wed Jan 23, 2019 11:29 am
Forum: General Discussion and Questions
Topic: Sending float data type on UART using ESP32
Replies: 7
Views: 376

Sending float data type on UART using ESP32

I want to send data to other devices using ESP32 DevkitC through UART communication.I want to send float data type and int data type.I know that bytearray converts it into ASCII and i want to send data of float type.How do i do that? from machine import UART u2=UART(2,9600) u2.init(9600,bits=8,parit...