Added listeners that supply JSON to support Nativescript plugins
Summary
This release updates the Cocoapod with additional listeners that in addition to supplying the native Swift objects also supplies JSON representations of these objects. This is to support Nativescript plugin development since the Swift objects are being passed to the listeners as null when developing TappyBLE apps in Nativescript
Changes, improvements, and bug fixes:
TappyBleScanner
- Added
tappyFoundListenerJSON
property and modifiedcentralManager(_ central: CBCentralManager, didDiscover peripheral: CBPeripheral, advertisementData: [String : Any], rssi RSSI: NSNumber)
to compose a JSON representation of theTappyBleDevice
and pass it totappyFoundListenerJSON
- Added
setTappyFoundListenerJSON
method - Modified
removeTappyFoundListener
method to remove the JSON listeners as well
SerialTappy
- Added
responseListenerJSON
property and modifiedreceiveBytes
to compose a JSON representation of theTCMPMessage
and pass it toresponseListenerJSON
- Added
setResponseListenerJSON
method - Modified
removeResponseListener
method to remove the JSON listeners as well