File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,8 @@ class MyOutputCallbacks : public BLECharacteristicCallbacks {
36
36
class MyTask : public Task {
37
37
void run (void *){
38
38
vTaskDelay (5000 /portTICK_PERIOD_MS); // wait 5 seconds before send first message
39
- const char * hello = " Hello world from esp32 hid keyboard!!!" ;
40
39
while (1 ){
41
- vTaskDelay ( 2000 /portTICK_PERIOD_MS); // simulate write message every 2 seconds
40
+ const char * hello = " Hello world from esp32 hid keyboard!!! \n " ;
42
41
while (*hello){
43
42
KEYMAP map = keymap[(uint8_t )*hello];
44
43
/*
@@ -55,7 +54,10 @@ class MyTask : public Task {
55
54
input->setValue (v, sizeof (v));
56
55
input->notify ();
57
56
hello++;
57
+
58
+ vTaskDelay (10 /portTICK_PERIOD_MS);
58
59
}
60
+ vTaskDelay (2000 /portTICK_PERIOD_MS); // simulate write message every 2 seconds
59
61
}
60
62
vTaskDelete (NULL );
61
63
}
You can’t perform that action at this time.
0 commit comments