Comments (4)
the bleMouse.end() is an empty func; i have same problem and resolved it by soft restart the dev board ;detail in #37
from esp32-ble-mouse.
I noticed that too and updated the bleMouse.end() function to kill the task created by bleMouse.begin(), but that didn't fix the problem either. I'd like to avoid a soft restart if possible.
From BleMouse.cpp:
void BleMouse::begin(void)
{
xTaskCreate(this->taskServer, "server", 20000, (void *)this, 5, &this->taskHandle);
}
void BleMouse::end(void)
{
vTaskDelete(this->taskHandle);
}
From BleMouse.h:
class BleMouse {
private:
// some declarations
public:
// some declarations
TaskHandle_t taskHandle;
protected:
// some declarations
};
from esp32-ble-mouse.
I used the solution from above and added the following
if(bleMouse.isConnected()) { //blah //blah } else { bleMouse.end(); delay(1000); bleMouse.begin(); }
Mouse connected fine .....
from esp32-ble-mouse.
I tired the solution above, but it nonstop doing bleMouse.begin() after I cycle the iPhone Bluetooth on/off. Therefore I add isConnect() while loop to wait for connection after bleMouse.begin() but it never get out of the isConnected loop. Although Bluetooth connection indicate connected on iPhone after switch off, this solution still unable to reconnect properly. Anyone can help?
from esp32-ble-mouse.
Related Issues (20)
- Good suggestion for developers use wifi HOT 4
- Feature request: drag and drop (mouse-down, move and mouse-up) HOT 2
- ESP32-S3 Support / Mac OS support HOT 4
- the actual move offset does not match ipad resolution pixel HOT 1
- Why xTaskCreate() is used? HOT 1
- sdkconfig.h
- Accelerometer gesture sense that doesn't require tensorflow or other remote AI?
- The iPhone doesn't work
- Scroll down/up smoothly on Android? HOT 1
- compile error for LOGIn s2 Mini
- Resume advertising after the disconnect HOT 4
- It works on Android, but the mouse does not work in Windows 10 and 11 environments HOT 4
- connect to multiple computers at once
- Bluetooth connectivity issues between Android and Windows systems
- W10 not working HOT 5
- not working win 11 system
- ESP32-BLE-Abs-Mouse ESP32-BLE-Keyboard ESP32-BLE-Game-Grip Can these libraries be used together?
- ESP32 C3 Super Mini Issue
- Exit status 1, shows a bunch of errors in BLE library HOT 1
- Any chance to make determined mouse position?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-ble-mouse.