1. M

    Bug? Strings and Bytes Quiz Crashes ESP32?

    So after a long break, I'm resuming some B4R projects and typically I like to refresh my memory on string usage on the platform (since that's the thing that usually gets me in trouble on ESPs). I have a ESP32 with built in OLED board and I was trying the Strings and Bytes quiz which basically...
  2. Sgdva

    Android Question ESP32 Wifi Communication

    Greetings! Summary I would like to have an android interface to send commands to the ESP32 wifi module. For this purpose, I would need to make the board be connected to the Wifi desired by the user, secondly retrieve the IP assigned in the network and finally send commands by the Android...
  3. Chris160179

    Wish M5Stack - ESP32 Support

    Hello every Body, is there someone how likes to write a Library or Wrapper for the M5Stack Board? Official Site: GitHub Project with Arduino Library and some cool examples: There are 3 Boards called "Cores": - ESP32 Basic Core IoT...
  4. janderkan

    B4R Question Firebase FCM not working with ESP32 I am using B4R 3.0, Esp8266 2.5.2, Esp32 1.0.4 Using this example on the Esp8266 works fine. On the Esp32 the HttpJob/ParseResult function is not called. The data returned from Firebase in...
  5. M

    Wish MQTT Enhancement - Include BeginPublish,EndPublish,Write methods

    The B4R rMQTT library is based on the well known Arduino PubSubClient library written by Nick O'Leary. It's a subset of this library - with the most important/used methods wrapped. I do have a scenario that requires some of the additional methods to be wrapped as well. Specifically: boolean...
  6. M

    Wish Astream.WriteNoBoundsCheck - Avoid checking array bounds

    In working out using the ESP32 Camera (see tutorial here), I initially struggled with sending a buffer of data over 32KB using Astream.Write/Write2. For example, a picture taken by the camera at highest res (1600X1200 pixels) could easily be over 300KB. The camera returns a pointer to the...
  7. M

    FreeRTOS - the small OS for ESP32 and ESP8266

    Having been away from micro-controllers for much of the year (my have things changed!), I will admit that I was puzzled by references to FreeRTOS and ESP32. I never payed much attention to it as when you compile a sketch in Arduino or a B4R program - *it just works*. I originally got started...
  8. M

    B4R Tutorial ESP32 Camera Picture Capture and Video Streaming! (Updated with code!)

    Hello! Last December I made a request for support for the ESP32 Camera support. Well, I finally found the time to work on it myself and here's my initial attempt at implementing this with B4R. I'm using an ESP32CAM camera board with 4GB of PSRAM (like extended memory for the camera). I'm...
  9. E

    B4R Question B4R NumberFormat string buffer overwrite or out-of-bounds?

    I am sending ASCII text lines via the serial-over-USB ESP32-PC link, and it was working great until I used NumberFormat. I have tried this code on two different ESP32 modules: Private Sub AppStart Serial1.Initialize(115200) Log("AppStart") Dim B1() As Byte = "Packet #"...
  10. janderkan

    B4R Question ObjectCopy - Esp32

    I am using this code in Esp8266 to copy from Eeprom to a string : Dim DynMqttServer As String = BC.StringFromBytes(EE.ReadBytes(ptrMqttserver+Offset,32)) BC.ObjectCopy(DynMqttServer, MqttServer, DynMqttServer.Length + 1) but on my Esp32 it restarts continously : AppStart Guru...
  11. KMatle

    B4R Tutorial Using RSA on a ESP32 via Inline C

    Here's nother example how to use RSA on a ESP32 based on this documentation: Notes: - If the filesystem does not work, you need to format it with fs.format once. - I've just copied the Public and Private Key from another app - Both...
  12. KMatle

    B4R Tutorial [B4x]: Exchange AES-256 encrypted messages between ESP32 and B4x

    This is about how to exchange AES256 encrypted messages incl. generated IV (initialization vector) between a ESP32 and B4x. Notes: - the ESP uses AES/CBC/NoPadding. The data must be padded (must have a length which is a multiple of 16). I've used a length of 256 to to get there (instead of...
  13. KMatle

    B4R Tutorial ESP32: AES-256 with IV (CBC, PKCSNoPadding) example via Inline C

    Finally I got it working. Maybe the Inline C code is not that elegant :) I was too lazy to add a Salt (which I will update later). Hardest part (for me as I don't like C since the 90ies) was to exchange the data between B4R Main and the Inline C. However: I got it. Note: As PKCSNoPadding ist...
  14. KMatle

    Wish ESP32: AES & RSA encryption (C code attached)

    I've found examples in C but I'm not experienced with inline C. Could someone adapt these examples to usable inline code? RSA AES...
  15. janderkan

    B4R Code Snippet ESP32 hardware serials on TTGO Lora board

    Following these instructions you have access to the 3 hardware serials on an ESP32. Serial0 is connected to the USB interface. The default pins are Serial0 - RX: GPIO3 , TX: GPIO1 Serial1 - RX: GPIO9 , TX: GPIO10 Serial2 - RX: GPIO16 , TX: GPIO17 On a TTGO Lora board the GPIO 9,10,16,17 are...
  16. kolbe

    Bug? Memory leak with FileSytem?

    On the ESP32 the following code increases allocated RAM about 500 bytes each iteration until it runs out of RAM. Am I missing something? SKIP_B4RNEW doesn't make a difference. Library version is 1.10. #Region Project Attributes #AutoFlushLogs: True #CheckArrayBounds: True...
  17. W

    German ESP32 relaisshield

    Hallo, ich komme irgendwie nicht weiter. Ich versuche über einen ESP32 eine 4 Kanal Relaiskarte anzusteuern. B4A bringt die Schaltbuttons auf ein Smartphone. Hat das schon jemand gemacht?
  18. M

    Wish ESP32 Camera Module Support

    I'm sure some of you have seen some of the youtube clips of the ESP32 Camera Module (if not you can check out a few here). The demos are intriguing and open up a world of possibilities. I have a project in mind to use an ESP32 and the Camera module triggered from a PIR sensor and snap a picture...
  19. santook

    B4R Question How to develop ESP32 applications

    The Arduino IDE can only install one of the ESP32 or ESP8266. However, the ESP32 library of B4R depends on WIFI. H, and some of them depend on ESP8266WIFI. H. How do you make both ESP32 and ESP8266 compatible It is recommended that ESP32 be built separately
  20. T

    Wish WiFi - TCP/IP Library for ESP32

    The latest firmware for the ESP32/WROOM32 adds many new possibilities over the ESP8266. e.g. being able to specify DNS servers. Are there any plans to provide a library for this? I'd be happy to make a donation towards the development :) Thanks, M.