B4R Library rESPUI for esp32

it is a wrapper for ESPUI from https://github.com/s00500/ESPUI but wrapper is working only for ESP32.

ESPUI is a simple library to make a web-based user interface for your projects using the ESP8266 or the ESP32 It uses web sockets and lets you create, and update elements on your GUI through multiple devices like phones and tablets.
ESPUI uses simple Arduino-style syntax for creating a solid, functioning user interface without too much boilerplate code.

So if you either don't know how or just don't want to waste time: this is your simple solution user interface without the need of internet connectivity or any additional servers.

in B4R, objects can be created without call back or with call back when an activation of a sub is needed from object modification.
in B4R, only one Callback is available and a sort of object at origin of call back is needed from userdata / controlType to activate a code from user action on object

full documentation in https://github.com/s00500/ESPUI
examples for B4R are provided in wrapper delivery
 

Attachments

  • rESPUI.zip
    27.6 KB · Views: 93

Pitag

Member
Licensed User
Longtime User
I'm trying the complete example, but i get this error. Seems some file are missing. Am I missing something?
Here the compilation logs.

B4X:
cli: compile -b esp32:esp32:d1_mini32 C:\temp\RESPUI~1\Objects\src\src.ino -v  --board-options UploadSpeed=921600,CPUFreq=240,FlashFreq=80,PartitionScheme=default,DebugLevel=none,EraseFlash=none
FQBN: esp32:esp32:d1_mini32
Utilizzo della scheda 'd1_mini32' dalla piattaforma nella cartella: C:\Users\XXXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15
Utilizzo del core 'esp32' dalla piattaforma nella cartella: C:\Users\XXXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15
cmd /c if exist "C:\\temp\\rESPui-example\\Objects\\src\\partitions.csv" COPY /y "C:\\temp\\rESPui-example\\Objects\\src\\partitions.csv" "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80\\partitions.csv"
cmd /c if not exist "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80\\partitions.csv" if exist "C:\\Users\\XXXX\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.15\\variants\\d1_mini32\\partitions.csv" COPY "C:\\Users\\XXXX\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.15\\variants\\d1_mini32\\partitions.csv" "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80\\partitions.csv"
cmd /c if not exist "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80\\partitions.csv" COPY "C:\\Users\\XXXX\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.15\\tools\\partitions\\default.csv" "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80\\partitions.csv"
cmd /c IF EXIST "C:\\temp\\rESPui-example\\Objects\\src\\bootloader.bin" ( COPY /y "C:\\temp\\rESPui-example\\Objects\\src\\bootloader.bin" "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80\\src.ino.bootloader.bin" ) ELSE ( IF EXIST "C:\\Users\\XXXX\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.15\\variants\\d1_mini32\\bootloader.bin" ( COPY "C:\\Users\\XXXX\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.15\\variants\\d1_mini32\\bootloader.bin" "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80\\src.ino.bootloader.bin" ) ELSE ( "C:\\Users\\XXXX\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esptool_py\\4.5.1\\esptool.exe" --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80\\src.ino.bootloader.bin" "C:\\Users\\XXXX\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\2.0.15\\tools\\sdk\\esp32\\bin\\bootloader_dio_80m.elf" ) )
esptool.py v4.5.1
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
cmd /c if exist "C:\\temp\\rESPui-example\\Objects\\src\\build_opt.h" COPY /y "C:\\temp\\rESPui-example\\Objects\\src\\build_opt.h" "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80\\build_opt.h"
cmd /c if not exist "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80\\build_opt.h" type nul > "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80\\build_opt.h"
cmd /c type nul > "C:\\Users\\XXXX\\AppData\\Local\\Temp\\arduino\\sketches\\1BF57DAA526E3923F3F4673ECB084C80/file_opts"
Rilevamento delle librerie utilizzate in corso...
...
Alternative per WiFi.h: [WiFi@2.0.0]
ResolveLibrary(WiFi.h)
  -> candidati: [WiFi@2.0.0]
.....

Alternative per WiFiClientSecure.h: [WiFiClientSecure@2.0.0]
ResolveLibrary(WiFiClientSecure.h)
  -> candidati: [WiFiClientSecure@2.0.0]
.....
Alternative per ESPUI.h: []
ResolveLibrary(ESPUI.h)
  -> candidati: []
In file included from C:\temp\rESPui-example\Objects\src\B4RDefines.h:27,
                 from C:\temp\rESPui-example\Objects\src\src.ino:1:
C:\temp\rESPui-example\Objects\src\rESPUI.h:3:10: fatal error: ESPUI.h: No such file or directory
 #include "ESPUI.h"
          ^~~~~~~~~
compilation terminated.
[92mLibreria utilizzata[0m [92mVersione[0m [90mPercorso[0m
[93mWiFi[0m                2.0.0    [90mC:\Users\XXXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15\libraries\WiFi[0m
[93mWiFiClientSecure[0m    2.0.0    [90mC:\Users\XXXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15\libraries\WiFiClientSecure[0m
[92mPiattaforma utilizzata[0m [92mVersione[0m [90mPercorso[0m
[93mesp32:esp32[0m            2.0.15   [90mC:\Users\XXXX\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.15[0m
Si è verificato un errore durante la compilazione: exit status 1
 
Top