Kevin Hester
f2698bbf91
bug #496 - allow update clients to program SPIFFS region
...
also have build system properly build spiffs release builds
2020-11-16 08:56:32 +08:00
Kevin Hester
2fd5ce00ce
fix build for esp32 targets
2020-11-07 15:09:05 +08:00
Kevin Hester
d7368d5a51
begin deep sleep support for nrf52
2020-10-30 17:05:32 +08:00
Kevin Hester
0b3c25f6d9
use correct code for "talking to phone" fixes OTA update while a router
2020-10-21 16:50:09 +08:00
Kevin Hester
49b4ed2a89
coroutine: kinda works now
2020-10-10 18:03:45 +08:00
Jm Casler
28119bf1bf
Fix for #439 and some cleanup
2020-09-26 00:01:02 -07:00
geeksville
2996c7c8e2
Make tcp API now work. Sample usage and caveats below:
...
Sample usage:
First configure device to use @mc-hamster's new wifi stuff:
meshtastic --set wifi_ssid mylanname --set wifi_password mylanpassword
Then reboot the device (so wifi starts up).
(assuming device was assigned addr 192.168.81.45)
meshtastic --info --host 192.168.81.45
(See the usual device info you previously had to get over USB)
Caveats:
* Currently we are limiting to one active TCP connection open at once, if
you open a new session the old one is closed automatically
* There are no access controls/authentication needed to open a TCP
connection to the device
* Currently main.cpp is kinda dumb about how we should schedule work and
we rely on too many helper loop() functions. Very soon in my queue
(related to all the other cleanup) is to add a basic notion of coroutines,
so that we can get away from freertos threads and this old school arduino
loop function. Once that cleanup happens we can the a) have much lower
battery consumption (always) and b) super fast response for all operations.
2020-09-25 16:18:30 -07:00
Jm Casler
b39f6c96bd
Merge remote-tracking branch 'origin/dev-wifi'
2020-09-22 22:00:07 -07:00
geeksville
9e9c50e6d8
Add API server on port 4403 (kinda a WIP, seems to work but I haven't
...
finished the python client code)
2020-09-19 12:54:49 -07:00
geeksville
fefd3d78f3
Portduino WIP now compiles but does not link
2020-09-05 12:34:48 -07:00
geeksville
c370eb4a88
allow restarting failed upgrades (fixes an android autobug report)
2020-08-30 12:21:05 -07:00
geeksville
204f2c1a68
software update service now registered with NimBLE
2020-07-24 11:39:48 -07:00
geeksville
a5b7501a4e
nimble add debug output
2020-07-24 10:12:25 -07:00
geeksville
b0e2c81666
nimble software update WIP builds
2020-07-23 15:57:31 -07:00
geeksville
00ca351169
WIP begin changing software update service over to nimble
2020-07-23 13:01:31 -07:00
geeksville
107b56a346
move bluetooth enable
2020-07-22 21:41:56 -07:00
geeksville
abdc4dfae8
remove old mesh ble service
2020-07-22 21:29:32 -07:00
geeksville
b6a3deb341
nimble WIP - writes kinda work now
2020-07-22 12:08:54 -07:00
geeksville
531f488fe8
WIP nimble ugly but advertise works
2020-07-22 10:46:01 -07:00
geeksville
7f6dc104f0
nimble WIP - add advertising boilerplate
2020-07-22 09:51:57 -07:00
geeksville
102085808f
WIP nimble now builds
2020-07-21 12:42:24 -07:00
geeksville
2645730329
Merge branch 'post1' into nimble
...
# Conflicts:
# docs/software/TODO.md
# docs/software/nrf52-TODO.md
# platformio.ini
# src/esp32/MeshBluetoothService.cpp
2020-07-21 11:20:09 -07:00
geeksville
6aa28f55dd
WIP stubify to get app building without CONFIG_BLUEDROID (BLE disabled)
2020-07-21 11:16:14 -07:00
geeksville
1e86365167
MITM_BOND supposedly doesn't have the problem mentioned in #266
...
(and it is good / more secure anyways - the old code was just
based on the example docs)
2020-07-19 15:01:15 -07:00
geeksville
9e10ce487c
Merge branch 'master' into post1
2020-07-18 13:32:30 -07:00
geeksville
cfedc97cd0
Show NVS flash utilization at boot (for debugging ble things?)
2020-07-18 08:49:42 -07:00
geeksville
4147786b12
WIP of adding NRF52 bluetooth API, we take a hardfault in Bluefruit init
2020-07-15 13:10:56 -07:00
geeksville
ed589727d6
Update NRF52 build to work again
2020-07-09 19:57:55 -07:00
geeksville
62c9bad183
WIP TCP API server over wifi
2020-07-07 18:37:42 -07:00
grcasanova
9803141fe7
merged with master
2020-07-06 21:53:10 +02:00
grcasanova
92b30ebec6
fixes now compiles
2020-07-06 10:45:55 +02:00
Professr
f5b7c33d4e
Refactored status handlers and merged
2020-06-28 18:17:52 -07:00
geeksville
bd477f0fb2
turn on thread watchdog
2020-06-28 11:12:12 -07:00
Professr
542b8b26ce
Abstracted statuses, made display event-driven
2020-06-27 21:19:49 -07:00
Kevin Hester
ba3e1abb5e
Merge branch 'master' into dev
2020-06-23 15:37:07 -07:00
geeksville
4e958c9230
make software update keep device from sleeping
2020-06-22 17:10:41 -07:00
Professr
6a857b00db
Add cpp clamp function to util.h, switched battery and signal strength percentage calcs to it #197
2020-06-22 14:06:02 -07:00
geeksville
d9e93f3944
Try turning my software update service back on...
...
Now that I've fixed a couple of nasty esp32-arduino bugs
2020-06-22 10:06:35 -07:00
geeksville
60470211e5
expose battery level via the standard BLE battery service
2020-06-22 10:04:26 -07:00
Professr
364fc84aaa
Removed unnecessary include, ready for consideration for issue #196
2020-06-21 16:31:09 -07:00
Professr
fe4f86bc84
Added battery charge percent estimation
2020-06-21 16:21:34 -07:00
geeksville
d8db4449be
0.7.6
2020-06-15 07:04:03 -07:00
geeksville
fda98bbf58
oops BLE auth should not change
2020-06-14 15:52:06 -07:00
geeksville
aadba1f694
add printPacket for debug printing packets
2020-06-14 15:30:42 -07:00
geeksville
2c8d152885
Use old style (pre BLE 4.2) pairing, it seems more reliable
2020-06-14 15:30:21 -07:00
geeksville
13307c502f
misc debug output
2020-06-13 16:29:53 -07:00
geeksville
8a1754efe8
leave the software update service off for now - no one is using ityet
2020-06-13 11:36:45 -07:00
geeksville
d5deb49d20
use executeDelete to prevent leaking BLE handles
2020-06-13 11:05:13 -07:00
geeksville
575a15e135
remove more dead rev1 protocol code
2020-06-13 08:29:41 -07:00
geeksville
dc7469c64b
useful bluetooth debugging output
2020-06-13 08:29:25 -07:00