firmware/src
geeksville c5851a4a0c Report battery level to other nodes in mesh (and apps).
Also today I'll turn back on the the standard "has a battery" BLE
device profile, so the locally connected radio should show up in the
phone's bluetooth popup of battery levels (similar to how a BLE
headphone battery level appears)

cc @lgoix - using code from @professr

```
meshtastic --info
Connected to radio...
my_node_num: 2883444536
has_gps: true
num_channels: 13
region: "unset"
hw_model: "tbeam"
firmware_version: "unset"
packet_id_bits: 32
current_packet_id: 91018534
node_num_bits: 32
message_timeout_msec: 300000
min_app_version: 172

preferences {
  position_broadcast_secs: 900
  send_owner_interval: 4
  wait_bluetooth_secs: 120
  screen_on_secs: 300
  phone_timeout_secs: 900
  phone_sds_timeout_sec: 7200
  mesh_sds_timeout_secs: 7200
  sds_secs: 31536000
  ls_secs: 3600
}
channel_settings {
  tx_power: 23
  modem_config: Bw125Cr48Sf4096
  psk: "\324\361\273: )\007Y\360\274\377\253\317Ni\277"
  name: "Default"
}

Nodes in mesh:
{'num': 2883444536, 'user': {'id': '!2462abdddf38', 'longName': 'Unknown df38', 'shortName': '?38', 'macaddr': 'JGKr3d84'}, 'position': {'altitude': 96, 'batteryLevel': 100, 'latitudeI': 375210641, 'longitudeI': -1223090398, 'time': 1592843564, 'latitude': 37.5210641, 'longitude': -122.3090398}}
```
2020-06-22 09:36:19 -07:00
..
cubecell cubecell wip 2020-06-16 17:13:26 -07:00
esp32 Removed unnecessary include, ready for consideration for issue #196 2020-06-21 16:31:09 -07:00
gps Merge remote-tracking branch 'root/master' into dev 2020-06-22 09:22:54 -07:00
mesh Report battery level to other nodes in mesh (and apps). 2020-06-22 09:36:19 -07:00
nrf52 cubecell wip 2020-06-16 17:13:26 -07:00
.gitignore stop explicitly using Serial.print for debug messages 2020-02-04 08:17:44 -08:00
compass.xbm placeholder debug and nodeinfo screens are in 2020-02-07 17:26:42 -08:00
configuration.h cubecell wip 2020-06-16 17:13:26 -07:00
debug.cpp Get build (kinda, not really) running on a NRF52 2020-04-14 20:22:27 -07:00
debug.h add a Lock, LockGuard and printThreadInfo 2020-03-15 16:52:19 -07:00
error.h new API now seems fully implemented - now on to testing. #69 2020-04-22 16:11:54 -07:00
fonts.h reformat everything 2020-03-18 19:15:51 -07:00
freertosinc.h cubecell wip 2020-06-16 17:13:26 -07:00
icon.xbm placeholder debug and nodeinfo screens are in 2020-02-07 17:26:42 -08:00
images.h Replaced battery, node, and gps text with a graphical header. Added hash to the beginning of the channel name. 2020-06-21 17:28:37 -07:00
lock.cpp cubecell WIP 2020-06-05 17:30:09 -07:00
lock.h cubecell WIP 2020-06-05 17:30:09 -07:00
main.cpp Merge remote-tracking branch 'root/master' into dev 2020-06-22 09:22:54 -07:00
main.h placeholder guess at PMU code until I have HW 2020-04-24 09:33:45 -07:00
Observer.cpp move bluetooth code into something that is architecture specific... 2020-04-10 12:18:48 -07:00
Observer.h misc NRF52 fixes 2020-04-23 12:47:41 -07:00
OSTimer.cpp use my Timer class on all platforms, it works better than the freertos version 2020-05-25 07:48:36 -07:00
OSTimer.h use my Timer class on all platforms, it works better than the freertos version 2020-05-25 07:48:36 -07:00
Periodic.h reformat everything 2020-03-18 19:15:51 -07:00
PeriodicTask.cpp clean up PeriodicTask so I can eventually use it with a scheduler 2020-04-25 10:59:40 -07:00
PeriodicTask.h use my Timer class on all platforms, it works better than the freertos version 2020-05-25 07:48:36 -07:00
pin.xbm placeholder debug and nodeinfo screens are in 2020-02-07 17:26:42 -08:00
power.h Added battery charge percent estimation 2020-06-21 16:21:34 -07:00
PowerFSM.cpp if we can't sleep, at least have the processor block for 100ms 2020-06-10 18:23:20 -07:00
PowerFSM.h add a new SERIAL psm state, to ensure device doesn't sleep while 2020-06-08 16:37:49 -07:00
RedirectablePrint.cpp Create RedirectablePrint and NoopPrint for serial debug redirection 2020-04-27 09:01:25 -07:00
RedirectablePrint.h Create RedirectablePrint and NoopPrint for serial debug redirection 2020-04-27 09:01:25 -07:00
screen.cpp Merge remote-tracking branch 'root/master' into dev 2020-06-22 09:22:54 -07:00
screen.h Add support for SH1106 controller 2020-06-14 10:28:23 +02:00
SerialConsole.cpp turn off serial debug output once we are using the protocol on the stream 2020-06-09 10:35:06 -07:00
SerialConsole.h unify activity detection in PhoneAPI, turn off BLE API while serial API in use 2020-06-08 16:06:59 -07:00
sleep.cpp make recent changes work on non ESP hardware 2020-06-15 13:32:06 -07:00
sleep.h 0.7.6 2020-06-15 07:04:03 -07:00
target_specific.h begin splitting up source files, so we can have a tree of sources... 2020-04-10 12:15:35 -07:00
WorkerThread.cpp Merge branch 'master' into cubecell 2020-06-15 12:42:01 -07:00
WorkerThread.h cubecell wip 2020-06-16 17:13:26 -07:00