Questions with regards to ESP8266 Basic and hardware interfacing and control via Basic commands

Moderator: Mmiscool

User avatar
By lpservices
#53977 Hello,

I tested your code in Alpha 43,
Indeed it crashes the esp8266,
If you do not use UDP, an put the slider updates in the touch handler it works fine,
so somthing wrong with using UDP,
Tried to intialise UDP in different places, but still craches
UDP and sliders don't seem to work together

I recompiled the latest version, with rotated touch coordinates for you,
you can download this version at: https://1drv.ms/u/s!Aus86D6RbETcgyu_zQTFVlop1WH5

Kind regards
-lpservices (Luc)
User avatar
By tcpipchip
#53981 Ipservices, i will test soon the code!!!! Thanks Again for the help!
Btw, are you testing on nodemcu ? Do you user usb power or a external power supply in the Vin ?
All the time that you power up or reset or execute web RUN, always execute from beginning without stack crash ?

Can you give instructions to compile the full espbasic :D on arduino ?
User avatar
By lpservices
#54010 Hello,

Yes I am using the nodemcu, powered by usb
I power my display from the 3.3v available on the nodemcu board
The program with sliders and udp craches always, it draws the outline of the first slider and craches, if I put the udp code that updates the slider in the button ontouch code it works, udp is with sliders is craching, something mmiscool has to look at.
For comipling your espbasic, you need to download de arduino ide.
I think version 1.6.5 is the correct one
Download van git the 3.0 version
Put all the library files in the downloaded zip file in the Arduino library folder, overwrite if there is a conflict.
Enable development for esp8266, by adding the esp8266 tools to the board manager
Select your board in the board manager
Load de espbasic.ino file from the zip file and verify/compile
If everything goes well, connect your nodemcu board to usb, and select in tools menu correct comm port
Set nodemcu in flash mode, and select upload
The board is then flashed
This is a very short description, if you google a bit, you find more detailed instruction
Hope this helps
-lpservices
User avatar
By tcpipchip
#54141 Hi

Thanks for your help!

I am doing a ESP8266 BASIC application that communicates with OBD2 WIFI module.

Now i can read the RPM nice!

But, something is very strange! When i reset or power up or RUN the ESP8266 BASIC, it crashs about 4 or 5 times (stack error) before to start and execute successfully!

And you having this problem too ? Or always execute nice in you side ?

Miguel