ESTMesh
@interface ESTMesh : ESTBaseVO <NSCopying, NSCoding>
ESTMesh represents object of Mesh network’s details stored in Estimote Cloud.
-
Mesh network’s identifier.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSNumber *_Nonnull networkIdentifier;
Swift
var networkIdentifier: NSNumber { get }
-
Mesh network’s name.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSString *_Nonnull networkName;
Swift
var networkName: String { get }
-
Mesh network’s type.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readonly) ESTMeshNetworkType networkType;
Swift
var networkType: ESTMeshNetworkType { get }
-
List of devices that Mesh consists of. Each device has already applied Mesh network’s settings.
Declaration
Objective-C
@property (nonatomic, strong, readwrite) NSArray<NSString *> *_Nonnull devices;
Swift
var devices: [String] { get set }
-
Method allows to initialize Mesh network object.
Declaration
Objective-C
- (nonnull instancetype)initWithCloudData:(nonnull NSDictionary *)cloudData;
Swift
init(cloudData: [AnyHashable : Any])
Parameters
cloudData
Data fetched from Estimote Cloud.
Return Value
Initialized object.
-
Method for adding ESTDeviceLocationBeacon to Mesh network. Keep in mind that established bluetooth connection is required to perform this method.
Declaration
Objective-C
- (void)addDevice:(nonnull ESTDeviceLocationBeacon *)device completion:(nonnull ESTCompletionBlock)completion;
Swift
func addDevice(_ device: ESTDeviceLocationBeacon, completion: @escaping ESTCompletionBlock)
Parameters
device
ESTDeviceLocationBeacon object to be added to Mesh network.
completion
Completion block with operation result. Nil error means success.
-
Removes device from Mesh network.
Declaration
Objective-C
- (void)removeDevice:(nonnull ESTDeviceLocationBeacon *)device completion:(nonnull ESTCompletionBlock)completion;
Swift
func removeDevice(_ device: ESTDeviceLocationBeacon, completion: @escaping ESTCompletionBlock)
Parameters
device
Presently connected device you want to remove from Mesh.
completion
Completion block with result. Error of nil value means that the request was successful.