Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can work on my iPhone but cannot work on my laptop win 10 #276

Open
Folnia opened this issue Jan 4, 2024 · 0 comments
Open

Can work on my iPhone but cannot work on my laptop win 10 #276

Folnia opened this issue Jan 4, 2024 · 0 comments

Comments

@Folnia
Copy link

Folnia commented Jan 4, 2024

On the laptop it shows they are paired and connected, but nothing happend...nothing was typed in the text I opened.
But it worked with my iphone.

One stange thing: I used an BLE assitant on win 10 (BLECOMM) and used the pairing fuction , then it worked.

ESP32-WROOM-32D
ESP32-BLE-KEYBOARD 0.3.2

#include <Arduino.h>
#include <BleKeyboard.h>
 
#include <wifi.h>
//#define USE_NIMBLE


BleKeyboard myKeyboard("我的ESP32board","Espressif",100);
 

void setup() {
  // put your setup code here, to run once:
Serial.begin(115200);
myKeyboard.begin();
  
}

void loop() {
  
  if (myKeyboard.isConnected())
    {       
    myKeyboard.print("hello"); 
    delay(3000);    
    //myKeyboard.press(KEY_NUM_ENTER);
    //delay(1000);
    myKeyboard.releaseAll();
    Serial.println("pressed");    
    }

}
@Folnia Folnia changed the title Can work with my iPhone but cannot work with my laptop win 10 Can work on my iPhone but cannot work on my laptop win 10 Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant