Wemos Pro ESP32 WIFI + Bluetooth Board 4MB Flash


$14.10

Local Warehouse
Cheapest Prices Worldwide
Fast Postage Available
100% Customer Satisfaction
Quality Guarantee
Buy Direct From Supplier
 
Hurry up! Just 8 items left in stock

Features:
 
WIFI
Bluetooth
4MB Flash
Lithium battery interface, 500mA Max charging current
Dual-core Tensilica LX6 microprocessor
Up to 240MHz clock frequency
520kB internal SRAM
Integrated 802.11 BGN WiFi transceiver
Integrated dual-mode Bluetooth (classic and BLE)
2.2 to 3.6V operating range
2.5 µA deep sleep current
28 GPIO
10-electrode capacitive touch support
Hardware accelerated encryption (AES, SHA2, ECC,        RSA-4096)
Integrated LiPo Battery
ChargerYou need to hold "boot" button then click "EN" will go to download mode.
 
Product test program:
 
The fourth program: change the Bluetooth device name
It is necessary to point out that the Arduino support package of  the development board  is not complete so far in this article (at least has been achieved but did not give the interface), such as Bluetooth, analog output function and so on. So, to use no Arduino library function,that it need to use the Native way to develop.
According to Espressif's official statement,  the library function of Bluetooth is in full swing, development and improvement. This Bluetooth program is also an example of the Espressif's official.Turn on Bluetooth after startup,it can be found on the Bluetooth interface of your mobile phone.Your cell phone must support BLE to find the device, because it opens with BLE Bluetooth, so you have to find the mobile phone support BLE equipment. The classic Bluetooth function there is no open Arduino interface. In addition, the device name will change if the user button is pressed every time (you need to use the mobile terminal to refresh the display to see it)

Code is as follows:
 
 #include "SimpleBLE.h"
SimpleBLE ble;
void onButton(){
String out = "BLE32 at: ";
out += String(rand() % 100);
Serial.println(out);
ble.begin(out);
}
void setup() {
Serial.begin(115200);
Serial.setDebugOutput(true);
ble.begin("ESP32 SimpleBLE");
Serial.println("Press the user button to change the device name");
}
void loop() {
static uint8_t lastPinState = 1;
uint8_t pinState = digitalRead(0);
if(!pinState && lastPinState){
onButton();
}
lastPinState = pinState;
while(Serial.available()) Serial.write(Serial.read());
}

Package included:

1 x Pro ESP32
1 x Battery cable

2 x 20P pinhead

 
Open the phone's Bluetooth interface to find the device, click the user button, and then refresh the Bluetooth device on the phone,
you can see that  the name has been changed

 

 

Category: