Add configurable Companion Bluetooth addresses
This commit is contained in:
1 parent
b25005f52f
commit
4b400ea56b
26 files changed
+2723
-1966
No files matched your search
@@ -9,6 +9,7 @@
|
||||
TEST(WebConfigKeys, AllowsKnownScalarKeys) {
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("name"));
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("bluetooth.name"));
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("bluetooth.mac"));
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("radio"));
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("radio.rxps"));
|
||||
EXPECT_TRUE(wcIsAllowedSetKey("powersaving"));
|
||||
@@ -68,8 +69,9 @@ TEST(WebConfigKeys, IsCaseSensitive) {
|
||||
EXPECT_FALSE(wcIsAllowedSetKey("MQTT1.preset"));
|
||||
}
|
||||
|
||||
TEST(WebConfigKeys, EspNowChannelAlwaysRequiresAReboot) {
|
||||
TEST(WebConfigKeys, AddressChangingKeysAlwaysRequireAReboot) {
|
||||
EXPECT_TRUE(wcSetKeyRequiresReboot("espnow.channel"));
|
||||
EXPECT_TRUE(wcSetKeyRequiresReboot("bluetooth.mac"));
|
||||
EXPECT_FALSE(wcSetKeyRequiresReboot(NULL));
|
||||
EXPECT_FALSE(wcSetKeyRequiresReboot("espnow.channel.extra"));
|
||||
EXPECT_FALSE(wcSetKeyRequiresReboot("ESPNOW.channel"));
|
||||
@@ -77,6 +79,13 @@ TEST(WebConfigKeys, EspNowChannelAlwaysRequiresAReboot) {
|
||||
EXPECT_FALSE(wcSetKeyRequiresReboot(""));
|
||||
}
|
||||
|
||||
TEST(WebConfigKeys, EspNowChannelClassificationIsNarrow) {
|
||||
EXPECT_TRUE(wcIsEspNowChannelKey("espnow.channel"));
|
||||
EXPECT_FALSE(wcIsEspNowChannelKey("bluetooth.mac"));
|
||||
EXPECT_FALSE(wcIsEspNowChannelKey("espnow.channel.extra"));
|
||||
EXPECT_FALSE(wcIsEspNowChannelKey(NULL));
|
||||
}
|
||||
|
||||
// ---- short-key OOB guard --------------------------------------------------
|
||||
// The slot-prefix probe indexes key[4..6]; these short strings must be rejected
|
||||
// without ever reading past the terminator.
|
||||
|
||||
Reference in new issue
Block a user