* sensor: "setperm {pubkey-hex} 0" command can now remove by partial pubkey

* sensor: login with blank password now just checks if sender is in ACL, and returns permissions (if so)
This commit is contained in:
Scott Powell committed 2025-07-16 21:16:05 +10:00
1 parent 64adc557e6
commit bd35daf4ca
2 files changed
+66 -31

No files matched your search

+2 -1
View File
@@ -160,8 +160,9 @@ private:
uint8_t handleLoginReq(const mesh::Identity& sender, const uint8_t* secret, uint32_t sender_timestamp, const uint8_t* data);
uint8_t handleRequest(uint8_t perms, uint32_t sender_timestamp, uint8_t req_type, uint8_t* payload, size_t payload_len);
mesh::Packet* createSelfAdvert();
ContactInfo* getContact(const uint8_t* pubkey, int key_len);
ContactInfo* putContact(const mesh::Identity& id, uint8_t init_perms);
void applyContactPermissions(const uint8_t* pubkey, uint8_t perms);
bool applyContactPermissions(const uint8_t* pubkey, int key_len, uint8_t perms);
void sendAlert(ContactInfo* c, Trigger* t);