From 3ef00c2221db8f5dfd4dd00cf4d33d9b4cd5e361 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Mon, 14 Jun 2021 19:06:56 +0900 Subject: [PATCH] upd q --- q/src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/q/src/main.cpp b/q/src/main.cpp index cce5d56..8d27985 100644 --- a/q/src/main.cpp +++ b/q/src/main.cpp @@ -38,10 +38,15 @@ // 'GEN_NOTE_REQ' // --> this will generate 'note' msg. // +// 'USE_ALTERNATIVE_ADDRESSES' +// --> peer list limited max. 20. +// so, we have alternative address book that covers after 20th. +// //==================== // #define DISABLE_AP #define GEN_NOTE_REQ +// #define USE_ALTERNATIVE_ADDRESSES //======================== // @@ -721,7 +726,11 @@ void setup() { // peerInfo.encrypt = false; // esp_now_add_peer(&peerInfo); +#if defined(USE_ALTERNATIVE_ADDRESSES) + AddressBook * book = lib.getBookByTitle("audioooo alt"); +#else AddressBook * book = lib.getBookByTitle("audioooo"); +#endif for (int idx = 0; idx < book->list.size(); idx++) { Serial.println("- ! (esp_now_add_peer) ==> add a '" + book->list[idx].name + "'."); esp_now_peer_info_t peerInfo;