Tuesday, December 26, 2023

BLE on ESP32

 reference: https://forum.arduino.cc/t/startadvertising-is-not-a-member-of-bledevice/1086837/5

So change this part of your sketch:

#include <BLEDevice.h> #include <BLEUtils.h> #include <BLEServer.h> #include <BLE2902.h>

to this:

#include <BLE2902.h> #include <BLEDevice.h> #include <BLEUtils.h> #include <BLEServer.h>



Wednesday, March 22, 2023

PN532 nfc reader on Arduino

  https://how2electronics.com/interfacing-pn532-nfc-rfid-module-with-arduino/

Tested both versions of connection - SPI & IIC which both worked.  Needed to pay attention to comment and uncomment the definition for the nfc:

// Or use this line for a breakout or shield with an I2C connection:

Adafruit_PN532 nfc(PN532_IRQ, PN532_RESET); // seem these IRQ and reset pin assignments doesn't matter of IIC setup