Ben Meadors
144dfe9805
Initial Detection sensor module feature ( #2722 )
...
* WIP
* Updates
* Doh!
* Move it out of the macro guard so portduino can build
* Changes from feedback
2023-08-14 19:00:51 -05:00
Ben Meadors
049c587ca2
Add phoneapi plumbing. Need to regen protos on my other machine
2023-07-27 12:51:31 -05:00
Ben Meadors
6e96216ba3
MQTT client proxying ( #2587 )
...
* WIP on MQTT proxy message queue
* Fix copy paste goof
* Progress on uplink
* Has packets
* Avoid trying to connect if we're proxying
* Pointer correctly
* Remove wifi guards
* Client proxy subscribe
* Fixed method that got bababababorked somehow... personally I blame CoPilot
* Short circuit logic
* Remove canned settings
* Missed some stuff in the move
* Guard pubsub client for non-networked variants
* Has networking guard
* else
* Return statement for fall-thru
* More gaurd removals
* Removed source filters. No wonder I was confused
* Bounding
* Scope guard around else and fix return
* Portduino
* Defs instead
* Move macro up to actually fix portduino
* Size_t
* Unsigned int
* Thread interval
* Protos
* Protobufs ref
2023-07-08 20:37:04 -05:00
Ben Meadors
a2c5b92840
NodeDB Lite migration ( #2554 )
...
* Skadoosh
* Removing deprecated fields
* Remove remaining deprecations
* Macro
* Macro
* WIP conversion
* Lots of type conversions between Lite versions and new NodeDB methods
* Trunk
* Conversion
* NULL
* Init
* Rename
* Position
* Reworked conversion to NodeInfo for PhoneAPI
2023-06-17 09:10:09 -05:00
Ben Meadors
81f80546b4
Remove deprecated MyNodeInfo fields ( #2552 )
...
* Skadoosh
* Removing deprecated fields
* Remove remaining deprecations
* Macro
* Macro
2023-06-08 08:07:32 -05:00
Ben Meadors
113026c372
Allow overriding the default Serial console output settings ( #2528 )
...
* Implement override_console_serial_port
* It's opposite day in Logictown
* Try to use native serial types for platforms
* Fix for s3
* Trunk
* Screw it... just declare as Print and handle init
* Alright, chatty kathy
* Missed a spot
* I'll take "Kill that FIXME" for 800, Alex
* Badunkadunk
* Refactor out a lot of duplicated code
* Boogers
* Okay I probably should stop changing everything
2023-05-30 05:26:34 -05:00
IhorNehrutsa
9c683f4c87
Fix LOG_DEBUG messages when no DEBUG_PORT. ( #2485 )
...
* Fix LOG_DEBUG messages when no DEBUG_PORT.
* Fix LOG_DEBUG messages when no DEBUG_PORT.
* Fix LOG_DEBUG messages when no DEBUG_PORT.
* Fix LOG_DEBUG messages when no DEBUG_PORT.
2023-05-13 05:33:14 -05:00
Ben Meadors
b3fac71a8d
Missed some stuff
2023-02-16 12:52:03 -06:00
Ben Meadors
2e6e0644d4
Move it around and kill old device metadata gen
2023-02-16 12:18:27 -06:00
Ben Meadors
3ae1fdf661
Add metadata to phone api want config messages
2023-02-16 10:21:03 -06:00
Thomas Göttgens
014946ad0e
tryfix: also clear the second buffer.
...
Todo: do we really need 2 buffers here?
2023-01-23 12:29:10 +01:00
Thomas Göttgens
3120744716
Missed one :-)
2023-01-22 18:58:14 +01:00
Ben Meadors
ac6d4e33d4
Format
2023-01-22 08:49:06 -06:00
Ben Meadors
4c9f0b2646
Just start a new PR. Conflicts were too wild
2023-01-22 08:48:31 -06:00
Thomas Göttgens
6fdb93cd16
re-add namespacing in protobufs. Let's see what i missed. Portduino likely ...
...
Checking in generated on purpose.
2023-01-21 21:23:24 +01:00
Ben Meadors
9046dacec8
I don't like this formatting but I need trunk to STFU
2023-01-18 14:51:48 -06:00
Thomas Göttgens
971565aed3
Merge branch 'develop' into xmodem-proto
2023-01-09 20:08:37 +01:00
Thomas Göttgens
3a6e3464e6
notify phoneAPI about new packages to process
2023-01-09 20:06:11 +01:00
Thomas Göttgens
0e7797f3bb
Adding to generated for now, protobuf PR will come when it works ... :-)
2023-01-08 18:15:51 +01:00
Thomas Göttgens
03c5dfc7a8
initial cleanup work
2023-01-07 13:16:58 +01:00
pavelb-techspark
30ae4c2a38
Add QueueStatus sending to the firmware ( #1820 )
...
* Yank mqtt service envelope queue
* trybuildfix mqtt system
* removed too much
* no excessive heap debugging on release builds
* send QueueStatus messages
The QueueStatus message is sent as a response to the attempt to queue
an outgoing MeshPacket and contains statuses of the last queue
attempt, TX Queue space and capacity and MeshPacket.id that was
queued.
When TX Queue changes status from completely full to at least
a single slot free a QueueStatus message is also sent to notify
that user can queue more messages.
Signed-off-by: Pavel Boldin <pavel.b@techspark.engineering>
* WIP: update protobufs
Signed-off-by: Pavel Boldin <pavel.b@techspark.engineering>
* update protobufs
* regen protos
Signed-off-by: Pavel Boldin <pavel.b@techspark.engineering>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
Co-authored-by: Sacha Weatherstone <sachaw100@hotmail.com>
2023-01-04 23:56:52 +11:00
Ben Meadors
f1cdfd163d
Replaced all of the logging with proper log levels
2022-12-30 10:27:07 -06:00
Ben Meadors
0b5cae5393
Log levels refactoring
2022-12-29 20:41:37 -06:00
Thomas Göttgens
45e6e86ff9
- add RemoteHardware (and the missing S&F config) in
...
- make the config boundaries automatic
2022-12-29 21:35:32 +01:00
Thomas Göttgens
2ac2b6d1b6
replace PB03 compat macros with the real deal.
2022-12-23 10:00:34 +01:00
Ben Meadors
32223a818c
Updated admin module and protobufs
2022-11-08 15:04:24 -06:00
Ben Meadors
f88dde2f60
Send channels over phoneapi on want config ( #1780 )
...
* Send channels
* Doh!
* Adjust comments
* Missed a spot
* Consolidate
* Skipped disabled ones
* Fixed bounding
* Change order
* comment out disabled check for build artefact
* Remove loop
* Off by one
* Probably should start at zero
* Zero
* Oops
* enable dubug log
* Reset to index zero
Co-authored-by: Sacha Weatherstone <sachaw100@hotmail.com>
2022-10-10 10:36:49 -05:00
GUVWAF
aee06f4738
Suppress debug messages in PhoneAPI as they flood the logs when a TCP connection is open
2022-10-01 12:09:43 +02:00
Thomas Göttgens
f7b12f0695
Adapt to new protobufs - TODO: factory_reset rewire
2022-09-09 12:51:41 +02:00
Ben Meadors
7f586f7099
Better logging and cleanup ( #1662 )
2022-08-29 07:31:02 -05:00
Ben Meadors
b54073a8a1
Bluetooth mode unification and behavior tweaks ( #1636 )
...
* Esp32 bluetooth modes
* Comment
* Gutting bluetooth
* Cleanup
* Security
* Testing
* NRF bluetooth security
* Reboot on saved lora or bluetooth settings
* Cleanup
* Fixes
* Stub for platforms without screens
* Fixed just-works in esp32
* Cleanup
* Display device name in boot screen
* Added waypoint module routing
* chmod
* Words
* Protos
* Backing out partition changes for testing
* Revert "Backing out partition changes for testing"
This reverts commit 191ed6489c
.
* Chmod PR artifacts
* Trying setInitialState again
* Revert "Trying setInitialState again"
This reverts commit 703eac7277
.
* External notification module
* Cleanup
* Pin display formatting
2022-08-22 16:41:23 -05:00
Ben Meadors
86d3759f55
New bluetooth config protos and canned messages consolidation ( #1632 )
...
* Bluetooth and canned messages refactor
* More can of worms messages
* Set has_bluetooth and default pin
* Defaults
2022-08-15 21:06:55 -05:00
Ben Meadors
591ae7a803
Change state order to send node info before config ( #1606 )
...
* Change state order to send node info before config
* Kill groups
2022-08-07 16:03:58 -05:00
Ben Meadors
9c6da233b9
Phoneapi moduleconfig ( #1538 )
2022-06-29 19:41:43 -05:00
Ben Meadors
7a50ab4de2
Re-init config_state after we switch to nodeinfo ( #1526 )
2022-06-20 13:28:50 -05:00
Thomas Göttgens
f63b876b71
Send config chunks one by one
2022-06-16 21:56:18 +02:00
Thomas Göttgens
49e47f3e6d
Let's try this
2022-06-15 21:50:33 +02:00
Thomas Göttgens
7566ee1fea
C++ is a weird language...
2022-06-15 20:03:08 +02:00
Thomas Göttgens
0146761850
TEST - Push of LocalConfig
2022-06-15 19:42:16 +02:00
Jm Casler
f3c15eb6cc
Completed compression. Tested between two devices.
2022-05-24 17:42:46 -07:00
Sacha Weatherstone
399e053ebd
workaround for undefined payload type on phoneapi
2022-05-02 13:04:05 +10:00
Balázs Kelemen
b76424db50
Make Observer to be able to observe multiple Observables. ( #1234 )
...
* Make Observer to be able to observe multiple Observables.
* Fix Observer destructor cleanup.
Co-authored-by: Sacha Weatherstone <sachaw100@hotmail.com>
2022-04-14 08:43:06 +10:00
Jm Casler
b6d7eadea3
Remove chat groups
2022-02-24 20:05:27 -08:00
Jm Casler
b15ef2749f
Add STATE_SEND_GROUPS to PhoneAPI::available
2022-02-20 08:23:05 -08:00
Jm Casler
3fdd425634
Add groups to payloadVariant
2022-02-20 01:33:49 -08:00
Kevin Hester
17a1262382
pull in new epaper lib (which required importing configuration.h everywhere
...
for dumb reasons)
2021-06-27 10:56:28 -07:00
Kevin Hester
bc76c79e1e
oops my latest change busted android connection detection
2021-05-03 15:37:37 +08:00
Kevin Hester
d179bda728
serious bug: connection to phones not being properly tracked
2021-05-03 14:46:30 +08:00
Kevin Hester
a9c8564524
fix millisecond unsigned rollover errors found via portduino
2021-03-30 23:11:33 +08:00
Kevin Hester
7e9e33d462
fix has_gps reporting to phones
2021-03-26 09:30:33 +08:00
Kevin Hester
0261c243e0
PhoneAPIs shouldn't register for messages until they have clients
2021-03-25 07:51:54 +08:00
Kevin Hester
b20930c111
move streamapi into a thread, saves power and increases responsiveness
2021-03-25 06:15:15 +08:00
Kevin Hester
ab9fe42f58
wip - move channels
2021-03-11 13:02:00 +08:00
Kevin Hester
96cfad4e57
less logspam
2021-03-06 14:52:26 +08:00
Kevin Hester
d2d6b8e12f
fix log formatting
2021-03-06 10:27:48 +08:00
Kevin Hester
0c0c0babba
combine acks works
2021-03-05 11:44:45 +08:00
Kevin Hester
fb47c3a03d
move channel and settings protos
2021-02-27 13:17:18 +08:00
Kevin Hester
c6091338ab
admin ops
2021-02-21 14:03:44 +08:00
Kevin Hester
45caf394f0
WIP multichannel support
2021-02-16 15:41:52 +08:00
Charles Crossan
05d237ee84
add handleSetChannel
2021-02-15 21:02:30 -05:00
Kevin Hester
fdfe62edf0
updates to work with new protobuf names
2021-02-10 16:18:41 +08:00
Kevin Hester
94a47dba7d
fix #624 - update battery level and current time on mynodeinfo
2021-01-04 09:59:53 +08:00
Kevin Hester
cdf416cb73
partial fix for #608 - when a new TCP API connection arrives, close old one completely
2020-12-31 10:02:18 +08:00
Kevin Hester
c972197643
fix #598 don't corrupt the heap when a TCP connection drops
2020-12-27 16:58:32 +08:00
Kevin Hester
031c58e21c
remove logspam that was busting serial api
2020-12-23 17:12:48 +08:00
Kevin Hester
15e1a3870c
When new node joins mesh, all other nodes reply with their current state
2020-12-17 10:53:29 +08:00
Kevin Hester
e80c79edbe
clean up debug msgs
2020-12-13 15:59:26 +08:00
Kevin Hester
5457541244
fix #477 : sleep behavior was broken in app due to device bug since 1.1.1
...
+ // NOTE: The phone app needs to know the ls_secs value so it can properly expect sleep behavior.
+ // So even if we internally use 0 to represent 'use default' we still need to send the value we are
+ // using to the app (so that even old phone apps work with new device loads).
2020-10-14 08:45:29 +08:00
Kevin Hester
95cb6b06e4
fix #462 publish immediately on any GPS state change
...
(don't wait until end of aquisition window)
2020-10-10 09:20:38 +08:00
Kevin Hester
c0c83ad389
If we are not supposed to share locations make sure phone doesn't either
2020-10-07 17:46:25 +08:00
Kevin Hester
7480eb1826
Change to use zeros for timeout values that are 'default'
2020-10-06 09:43:00 +08:00
geeksville
3c0429deee
Add new factory_reset preferences option clients can set
2020-09-19 11:19:42 -07:00
geeksville
fefd3d78f3
Portduino WIP now compiles but does not link
2020-09-05 12:34:48 -07:00
geeksville
12bf3795ea
less logspam when debugging the serial API
2020-08-02 12:55:22 -07:00
grcasanova
92b30ebec6
fixes now compiles
2020-07-06 10:45:55 +02:00
geeksville
7678540a93
For #187 was not reporting GPS status on new API
2020-06-17 17:25:55 -07:00
geeksville
aadba1f694
add printPacket for debug printing packets
2020-06-14 15:30:42 -07:00
geeksville
13307c502f
misc debug output
2020-06-13 16:29:53 -07:00
geeksville
dc7469c64b
useful bluetooth debugging output
2020-06-13 08:29:25 -07:00
geeksville
ce9bac34d6
add a new SERIAL psm state, to ensure device doesn't sleep while
...
connected to the phone over USB.
In support of
https://github.com/meshtastic/Meshtastic-Android/issues/38
2020-06-08 16:37:49 -07:00
geeksville
7473a6c27a
unify activity detection in PhoneAPI, turn off BLE API while serial API in use
2020-06-08 16:06:59 -07:00
geeksville
178e800969
add beginnings of StreamAPI
2020-04-27 08:10:17 -07:00
geeksville
dec4870649
begin cleaning up mesh library layer so that it could be split someday
2020-04-27 07:54:19 -07:00