From 6552d67abc3925e6e3ae5296b7cdbbdaad99d2c5 Mon Sep 17 00:00:00 2001 From: Matti Airas Date: Mon, 9 Sep 2024 11:19:43 +0300 Subject: [PATCH] Update README --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11e23719d..79254bda8 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ ```ini lib_deps = - SignalK/SensESP @ >=3.0.0-beta.1,<4 + SignalK/SensESP @ >=3.0.0-beta.2,<4 # https://github.com/SignalK/SensESP.git # Use this line to use the latest git version # symlink:///Users/mairas/src/SignalK/SensESP # Use this line to use a local copy ``` @@ -106,6 +106,18 @@ `reactesp::EventLoop`. In particular, this change probably needs to be made in your project's `main.cpp` file. +- `ReactESP` is no longer a singleton. Earlier, you could refer to the singleton + instance of `ReactESP` using `ReactESP::app`. Now, the object pointer is + maintained by the `SensESPBaseApp` class, and you can refer to it using + `sensesp_app->get_event_loop()`. For example: + + ```cpp + SensESPBaseApp::get_event_loop()->onRepeat( + 1000, + []() { Serial.println("Hello, world!"); } + ); + ``` + ### Development The frontend project is in the `frontend` directory tree. To build the frontend,