Skip to content

Instantly share code, notes, and snippets.

@fazaio
fazaio / ESP32-Client-NodeJS-Server-TCP.ino
Created April 6, 2021 16:56
ESP32 TCP client to NodeJS TCP server
/*
Simple basic example From ESP32/ESP8266 as Client to Nodejs as a server via TCP Protocol.
*/
//----------- ESP32 as TCP Client----------------
// file .ino
#include "WiFi.h"
const char* ssid = "SSID";
const char* password = "password";
@manuelbl
manuelbl / README.md
Created August 3, 2019 09:12
ESP32 as Bluetooth Keyboard

ESP32 as Bluetooth Keyboard

With its built-in Bluetooth capabilities, the ESP32 can act as a Bluetooth keyboard. The below code is a minimal example of how to achieve it. It will generate the key strokes for a message whenever a button attached to the ESP32 is pressed.

For the example setup, a momentary button should be connected to pin 2 and to ground. Pin 2 will be configured as an input with pull-up.

In order to receive the message, add the ESP32 as a Bluetooth keyboard of your computer or mobile phone:

  1. Go to your computers/phones settings
  2. Ensure Bluetooth is turned on