Im making a react-native application which is going to be connected to an IoT device that has a button. I have managed to connect my app to the IoT device and i am getting services and characteristics and other information, but im not sure how to make sense of these and how i can send signal from device to my phone with button click.
I am testing this with a real iPhone device.
Here is the output after i console.log the connected device information:
LOG Connected to 4C9C0294-C96E-A796-113A-16032707772F
LOG {"advertising": {"isConnectable": 1, "kCBAdvDataRxPrimaryPHY": 129, "kCBAdvDataRxSecondaryPHY": 0, "kCBAdvDataTimestamp": 662495861.133707, "serviceData": {"FFE1": [Object]}, "serviceUUIDs": ["FFE1"]}, "characteristics": [{"characteristic": "2A29", "isNotifying": false, "properties": [Array], "service": "180A"}, {"characteristic": "2A24", "isNotifying": false, "properties": [Array], "service": "180A"}, {"characteristic": "2A25", "isNotifying": false, "properties": [Array], "service": "180A"}, {"characteristic": "2A27", "isNotifying": false, "properties": [Array], "service": "180A"}, {"characteristic": "2A26", "isNotifying": false, "properties": [Array], "service": "180A"}, {"characteristic": "2A28", "isNotifying": false, "properties": [Array], "service": "180A"}, {"characteristic": "7F280002-8204-F393-E0A9-E50E24DCCA9E", "isNotifying": false, "properties": [Array], "service": "7F280001-8204-F393-E0A9-E50E24DCCA9E"}, {"characteristic": "A3C87501-8ED3-4BDF-8A39-A01BEBEDE295", "isNotifying": false, "properties": [Array], "service": "A3C87500-8ED3-4BDF-8A39-A01BEBEDE295"}, {"characteristic": "A3C87502-8ED3-4BDF-8A39-A01BEBEDE295", "isNotifying": false, "properties": [Array], "service": "A3C87500-8ED3-4BDF-8A39-A01BEBEDE295"}, {"characteristic": "A3C87503-8ED3-4BDF-8A39-A01BEBEDE295", "isNotifying": false, "properties": [Array], "service": "A3C87500-8ED3-4BDF-8A39-A01BEBEDE295"}, {"characteristic": "A3C87504-8ED3-4BDF-8A39-A01BEBEDE295", "isNotifying": false, "properties": [Array], "service": "A3C87500-8ED3-4BDF-8A39-A01BEBEDE295"}, {"characteristic": "A3C87505-8ED3-4BDF-8A39-A01BEBEDE295", "isNotifying": false, "properties": [Array], "service": "A3C87500-8ED3-4BDF-8A39-A01BEBEDE295"}, {"characteristic": "A3C8750A-8ED3-4BDF-8A39-A01BEBEDE295", "isNotifying": false, "properties": [Array], "service": "A3C87500-8ED3-4BDF-8A39-A01BEBEDE295"}, {"characteristic": "A3C8750B-8ED3-4BDF-8A39-A01BEBEDE295", "isNotifying": false, "properties": [Array], "service": "A3C87500-8ED3-4BDF-8A39-A01BEBEDE295"}], "id": "4C9C0294-C96E-A796-113A-16032707772F", "name": "nRF5x", "rssi": -52, "services": ["180A", "7F280001-8204-F393-E0A9-E50E24DCCA9E", "A3C87500-8ED3-4BDF-8A39-A01BEBEDE295"]}
Main question is how do i translate the meaning of these services and characteristics?
Second question is if you have any idea how to receive signal from IoT device button click?