mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-13 17:30:28 +00:00
fix: init tabs advert quick add
ref:
This commit is contained in:
@@ -157,6 +157,8 @@ class ConnectionProvider with ChangeNotifier {
|
||||
Function(int channelIdx, String channelName, Uint8List secret, int? flags)? onChannelInfoReceived;
|
||||
Function(Uint8List publicKeyPrefix, int tag, Uint8List responseData)?
|
||||
onBinaryResponse;
|
||||
Function(Uint8List publicKey)? onContactDeleted;
|
||||
VoidCallback? onContactsFull;
|
||||
Function(Uint8List publicKey)? onAdvertReceived;
|
||||
Function(Uint8List publicKey)? onPathUpdated;
|
||||
Function(Uint8List publicKeyPrefix, int permissions, bool isAdmin, int tag)?
|
||||
@@ -319,6 +321,16 @@ class ConnectionProvider with ChangeNotifier {
|
||||
onChannelInfoReceived?.call(channelIdx, channelName, secret, flags);
|
||||
};
|
||||
|
||||
_bleService.onContactDeleted = (publicKey) {
|
||||
debugPrint('⚠️ [Provider] Contact deleted by firmware (contacts full overwrite)');
|
||||
onContactDeleted?.call(publicKey);
|
||||
};
|
||||
|
||||
_bleService.onContactsFull = () {
|
||||
debugPrint('⚠️ [Provider] Contacts storage is full');
|
||||
onContactsFull?.call();
|
||||
};
|
||||
|
||||
_bleService.onMessageReceived = (message) {
|
||||
// Parse SAR markers
|
||||
final enhancedMessage = SarMessageParser.enhanceMessage(message);
|
||||
|
||||
Reference in New Issue
Block a user