![]() PCharacteristic = pService->createCharacteristic( ![]() Serial.println("Status\tHumidity (%)\tTemperature (C)\t(F)\tHeatIndex (C)\t(F)") ĭht.setup(DHTpin, DHTesp::DHT11) //for DHT11 Connect DHT sensor to GPIO 17īLEDevice::init("esp32 Weather Station") īLEServer *pServer = BLEDevice::createServer() īLEService *pService = pServer->createService(SERVICE_UUID) #define DHTpin 14 //D5 of NodeMCU is GPIO14 See the following for generating UUIDs: Ported to Arduino ESP32 by Evandro Copercini from there you should be able to start reading directly from your device and displaying it nicely in your Thunkable app! /* connect your device and ensure the UUID’s are matching. Once you upload the code to your esp32, connect your dht11 to power, grnd, and pin14, you’re set! restart the device, then fire up the thunkable app.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |