Estimote / iOS-Fleet-Management-SDK

Estimote Fleet Management SDK for iOS
https://developer.estimote.com
MIT License
1.18k stars 398 forks source link

Setting pin high not working (location beacons) #250

Closed garymansted closed 7 years ago

garymansted commented 7 years ago

Hi guys, Ive been trying for a few days now to set a pin high (location beacon) from an app I'm building. I feel that I am doing something wrong as i am getting an error when the block fires off. Error is: [ESTTelemetryInfo portsData]: unrecognized selector sent to instance... Ive looked everywhere for a snippet but can't find anything to see if this is my issue or an issue with the SDK. Here's the code I've tried.

let telem = ESTTelemetryInfo.init(shortIdentifier: "xxxxxxxxxxxxxxxx")! let setPinHigh = ESTTelemetryNotificationGPIO.init(notificationBlock: { (telInfo) in if telInfo.shortIdentifier! != "xxxxxxxxxxxxxxxx" { return } telInfo.portsData.setPort(.port0, value: .high) }) setPinHigh.fireNotificationBlock(with: telem)