matteocrippa / matteocrippa/leafminer

Could be more details written to the console?

Open
#27 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
158
Forks
26
PR merge metrics
No merged PRs in 30d

Description

LeafMiner 0.0.13

I would like to see more details printed to serial console. I miss information like MAC address of the device, IP address assigned from DHCP server, device model, chipID, size of memory, stored configuration could be printed, copyright information, etc.

Current output miss important details:

```
$ miniterm /dev/ttyACM0 115200
--- Miniterm on /dev/ttyACM0 115200,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
[I] Main: LeafMiner - v.0.0.13 - (C: 2)
[I] Main: ESP32 - Disable WDT
[I] Storage: Setup: OK
[I] AutoUpdate: Connecting to LuckyAP...
[D] AutoUpdate: payload: {
"current": "0.0.13",
"link": "https://github.com/matteocrippa/leafminer/releases/download/v{{version}}/firmware_{{device}}.bin",
"devices": [
"esp8266",
"esp32",
"esp32-s2",
"esp32-s3",
"geekmagic-smalltv",
"lilygo-t-display-s3"
]
}

[D] AutoUpdate: Remote Version: 0.0.13
[D] AutoUpdate: No Updates, Version: 0.0.13
[I] Network: Connecting to LuckyAP...
[D] Network: Connecting to host pool.vkbit.com...
[I] Network: >>> {"id":1,"method":"mining.subscribe","params":["LeafMiner/0.0.13", null]}
...
```

I would like to see more information about connection to the AP and to the pool:

```
...
[I] Network: Connecting to LuckyAP...
[D] Network: Connecting to host pool.vkbit.com...
...
```
NerdMiner_V2 prints configuration (JSON file) during start and IP is reported too...

Contributor guide

Open the contributing guide

Research direction

Start by tracing the startup and Network/AutoUpdate logging that produces the console output shown in the issue. Identify where device, connection, pool, and stored-configuration details are available, then make the requested information visible during startup and connection attempts; verify the resulting serial output on the ESP32 or ESP8266 targets.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot, networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.