FlyingK
FlyingK
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
Getting there. All sensor values are sent to SignalK and printed on the e-paper display. If SignalK is not reachable the esp32 will go to deep sleep for 5min and retry but the values are still readable on the display
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
No description
24 replies
SKSignal K
Created by FlyingK on 7/8/2024 in #sensesp
FlyingK - QQ: does a repeat sensor have to be c...
OK that was easier than I thought. Just quickly added a test_callback function writing to Serial, created a RepeatSensor without connecting it and voila: It's working! I see debug messages 🙂
1 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
This will save energy while not being on the boat, which was the main idea behing deep sleep anyway.
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
The current version got me thinking. When SignalK is reachable I will be on the boat as the pi is running and I will have access to shore power most likely to recharge. I probably will rewrite my code to go to deep sleep when SignalK can't be reached but stay connected when SignalK can be reached.
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
I managed to get my first version up and running and it successfully sends sensor values to SignalK and goes to deep sleep afterwards 😁
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
OK I got it. It's a stupid rookie mistake as this is my first microcontroller project. The app was getting to big, so adding any code did break it. I had to set board_build.partitions = huge_app.csv in platformio.ini to allocate more space. I am not used to having to write efficient code 😅
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
#include "sensesp_app_builder.h"
#include "sensesp/controllers/system_status_controller.h"
#include "sensesp/system/lambda_consumer.h"

using namespace sensesp;

reactesp::ReactESP app;

void setup() {
Serial.begin(115200);
delay(100);
Serial.println("--- starting setup ---");

SensESPAppBuilder builder;
sensesp_app = (&builder)
->set_hostname("sensesp-bme280")
->get_app();

sensesp_app->start();

// fiddling around with SystemStatusControllers and LambdaConsumers
auto* system_status_controller = sensesp_app->get_system_status_controller();
system_status_controller->connect_to(new LambdaConsumer<SystemStatus>([](SystemStatus input) {
Serial.printf("Got system status: %d", (int)input);
}));

Serial.println("--- setup done ---");
}

void loop() {
app.tick();
}
#include "sensesp_app_builder.h"
#include "sensesp/controllers/system_status_controller.h"
#include "sensesp/system/lambda_consumer.h"

using namespace sensesp;

reactesp::ReactESP app;

void setup() {
Serial.begin(115200);
delay(100);
Serial.println("--- starting setup ---");

SensESPAppBuilder builder;
sensesp_app = (&builder)
->set_hostname("sensesp-bme280")
->get_app();

sensesp_app->start();

// fiddling around with SystemStatusControllers and LambdaConsumers
auto* system_status_controller = sensesp_app->get_system_status_controller();
system_status_controller->connect_to(new LambdaConsumer<SystemStatus>([](SystemStatus input) {
Serial.printf("Got system status: %d", (int)input);
}));

Serial.println("--- setup done ---");
}

void loop() {
app.tick();
}
This is my bare minimum code and it's working. So I will gradually add code and see where it breaks
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
I will strip down my code to a bare minimum as well to test tomorrow
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
I will try to run in debug mode but I don't have an ESP-Prog
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
I am using the release version and It breaks when I add the second part of the code. Just getting the status controller works
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:1184 load:0x40078000,len:13232 load:0x40080400,len:3028 entry 0x400805e4 ets Jul 29 2019 12:21:46
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
I am struggling to get a LambdaConsumer connected to the SystemStatusController. Here is the code snippet I came up with: auto* system_status_controller = sensesp_app->get_system_status_controller(); system_status_controller->connect_to(new LambdaConsumer<SystemStatus>([](SystemStatus input) { debugD("Got system status: %d", (int)input); })); But this ends up in an endless software reset loop. Any ideas what's wrong with this?
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
Sure no problem. My GitHub repo currently is private but I will share once I made enough progress and got a stable beta version.
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
I've managed to rewrite my code from the mix and match style from the SensESP tutorial to a more ReactESP like style from the BMP tutorial. Now I have to figure out the LambdaConsumer on the SystemStatusController. Based on my current knowledge I will have to write two consumers. The first one will start deep sleep after the websocket client connected and sensor data has been sent and the second one will have to trigger if no connection can be established because openplotter will not be running 24/7.
24 replies
SKSignal K
Created by FlyingK on 6/25/2024 in #sensesp
FlyingK - First of all thank you much for the g...
Thx for the idea. I will check if I am able to implement something with onDelay ReactESP
24 replies
SKSignal K
Created by steveberl on 6/25/2024 in #questions
Looking for influxb example
It should work. Here is a quote from docs: "InfluxDB client libraries are language-specific packages that integrate with the InfluxDB 2.0 API and support both InfluxDB 1.8+ and InfluxDB 2.0."
7 replies