b4r

  1. 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...
  2. 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...
  3. Chris Tyrie

    Wish VEML6075 Library wrap

    I give up. I can't wrap libraries. The data I get is nonsensical. Can someone wrap either... https://github.com/adafruit/Adafruit_VEML6075 http://downloads.arduino.cc/libraries/github.com/sparkfun/SparkFun_VEML6075_Arduino_Library-1.0.4.zip There's an under the table bribe to your paypal...
  4. 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 #"...
  5. J

    B4R Question Other libraries

    For some reason the only DHT library that works with my module is the "simpleDHT" library in the arduino libraries running under the arduino ide. My question is how do i point B4R to this library instead of the B4R Dht library which i cannot get to work...I only get zeros..where the simpleDHT...
  6. kolbe

    B4R Library rPN532 RFID reader/writer

    Here's a library using the Adafruit arduino library for SPI and I2C access to the PN532 RFID/Near Field Communication chip. I've tested the SPI but not I2C. I've also tested all the Mifare functions. Not all the methods in the original library are exposed as at this point I'm not sure what they...
  7. santook

    B4R Library Watch Dog Timer For ESP8266

    For the ESP8266 watchdog, can be very simple to use. #Region Project Attributes #AutoFlushLogs: True #CheckArrayBounds: True #StackBufferSize: 300 #End Region Sub Process_Globals 'These global variables will be declared once when the application starts. 'Public variables can...
  8. Mashiane

    Will be starting my IOT with B4R soon.

    So we have it, just found this out... and it has an online course.. https://www.botshop.co.za This is going to be an interesting ride...
  9. 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...
  10. FASchmidt

    German B4R - Zugriff auf COMx für den Programm-Transfer verweigert

    Hallo, ich versuche ein Programm auf meine Entwicklungsbord Node MCU zu übertragen. Dies ist leider unter B4R (2.51) bisher erfolglos. Ich erhalte einen Fehler für den seriellen Port COM3. Mit der Arduino IDE (1.8.9) funktioniert einer Übertragung auf dem selben Port hingegen problemlos. Mein...
  11. KMatle

    B4R Question Native C: How to use Strings/Chars?

    I'm working on how to use AES with an ESP32. Everything is fine except how to use/return strings (byte arrays/chars). There are some threads but I don't get it. Code: Private enc() As Byte ' In Globals RunNative("InitAES",Null) ' Call Inline C #if C #include <mbedtls/aes.h> char rstr[50]...
  12. J

    German B4R - Ich kapier es einfach nicht ....

    Moinsen, vielleicht verstehe ich es falsch, aber folgendes passiert bei mir: Code wird compiliert und hochgeladen. Letzte Zeile im Protokollfenset: ********************* Programm startet **************** Danach eine Fehlermeldung: "Ein Fehler trat auf" "Der Verzeichnisname ist ungültig"...
  13. E

    Share My Creation ESP Configurator Through Andriod App

    This is based on EREL Project ESP Configurator... https://www.b4x.com/android/forum/threads/esp-configurator-based-on-b4rserializator.81452/ Just I port the whole code into An App...You can download the Apk file from here or Download from PlayStore. It does not contain ad.Freely available...
  14. kolbe

    B4R Question Globalstore not working as expected

    I'm getting odd results with the GlobalStore code. I need to store several KB worth of data in a running program that arrives via Wifi. This is on ESP32 board. In the code below 3 objects arrive with a total of 676 bytes of data. The first object is 333 bytes and I need to place it into an...
  15. E

    B4R Question BROADCAST STOPWATCH TIME THROUGH UDP ESP8266 12E

    I have running a timer every second for making a stopwatch. Three variables sec, minute and hour are taken. Sec is incremented with every timer tick and minute is incremented when sec value reaches 60. Everything is working fine. Now I want to broadcast the value of time in 00:00:00...
  16. A

    Share My Creation [B4X] Server Room Environment solution using Wemos / ESP8266

    A client asked us to research environment monitoring options for their server room. The servers themselves have that built-in but they needed something for the room in general. The following is a proof-of-concept (POC) that I came up with using several of the B4X tools to fulfill their...
  17. A

    B4R Code Snippet Measure Analog Sensor on Digital Pin

    Explanation is in the code. "Resistive Sensors" examples include Photocells (light sensor), Flex sensors, Thermistors (temperature reading). ' This example can be used to read a resistive sensor (a sensor that acts like a resistor) on a digital pin by using a capacitor. ' The basic concept is...
  18. A

    Wish MCP3008 ADC

    Could someone please wrap the Adafruit MCP3008 ADC library available at: https://github.com/adafruit/Adafruit_MCP3008 ? Or, offer another way of reading this ADC? I'm successfully using that library on a Wemos D1 R2 through the Arduino IDE and would like to now port it over to B4R.
  19. johnf2013

    B4R Question Simple interrupt in B4R

    I have a C++ app running on an Arduino Nano which has at its core a fast A/D read triggered by a pin interrupt. So, a shaft running at around 3000rpm has a sensor which triggers the interrupt every revolution. I then need to save the time this occurs and then do several hundred fast A/D...
  20. M

    B4R Question Issues with the ESP8266 FileSystem

    Hi, I'm new to the platform so I apologize upfront in case this turns out to be a stupid question. I have an ESP01 (ESP8266) module and I want to store some data that will survive restarts of the ESP01. If I understood well, one of the options to achieve this is to use the ESP8266 file system...
Top