github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/tests/e2e/mapper/bluetooth/crds/devicemodel.yaml (about) 1 apiVersion: devices.kubeedge.io/v1alpha1 2 kind: DeviceModel 3 metadata: 4 name: mock-temp-sensor-model 5 namespace: default 6 spec: 7 properties: 8 - name: temperature 9 description: temperature in degree celsius 10 type: 11 int: 12 accessMode: ReadOnly 13 maximum: 100 14 unit: degree celsius 15 - name: writedata 16 description: write data to device 17 type: 18 int: 19 accessMode: ReadWrite 20 defaultValue: 1 21 - name: readwrittendata 22 description: read data written to a device 23 type: 24 int: 25 accessMode: ReadOnly 26 maximum: 100 27 unit: degree celsius 28 - name: temperatureconversion 29 description: uses data converter for obtaining actual temperature value 30 type: 31 int: 32 accessMode: ReadOnly 33 maximum: 100 34 unit: degree celsius 35 - name: io-data 36 description: data field to control io-control 37 type: 38 int: 39 accessMode: ReadWrite 40 defaultValue: 0 41 propertyVisitors: 42 - propertyName: temperature 43 bluetooth: 44 characteristicUUID: 11fac9e0c11111e392460002a5d5c51b 45 - propertyName: writedata 46 bluetooth: 47 characteristicUUID: 16fe0d80c11111e3b8c80002a5d5c51b 48 - propertyName: readwrittendata 49 bluetooth: 50 characteristicUUID: 1c927b50c11611e38a330800200c9a66 51 - propertyName: temperatureconversion 52 bluetooth: 53 characteristicUUID: 2d816a41d33544f57b559000200c8a77 54 dataConverter: 55 startIndex: 1 56 endIndex: 0 57 shiftRight: 2 58 orderOfOperations: 59 - operationType: Multiply 60 operationValue: 0.03125 61 - propertyName: io-data 62 bluetooth: 63 characteristicUUID: 3d816a41e33655e57c668000100d8a44 64 dataWrite: 65 Red: [1] 66 Green: [2] 67 Yellow: [3] 68