works with phone

This commit is contained in:
geeksville
2020-02-02 19:08:04 -08:00
parent b799004f0d
commit d34bbffb2d
5 changed files with 40 additions and 8 deletions

View File

@@ -28,10 +28,13 @@ class BluetoothMeshCallbacks : public BLECharacteristicCallbacks
// or make empty if the queue is empty
if (!mp)
{
Serial.println("toPhone queue is empty");
c->setValue((uint8_t *)"", 0);
}
else
{
Serial.println("delivering toPhone packet to phone");
static FromRadio fradio;
// Encapsulate as a ToRadio packet