Openhab-addons: [bluetooth.bluegiga] BluetoothDevice manufacturerId always null

Created on 28 Nov 2019  路  4Comments  路  Source: openhab/openhab-addons

Exactly the same as #4658, just for the bluegiga binding. @ssalonen: Did you test with BlueGiga as well and had other results?

bug

All 4 comments

@pfink I have not tested with bluegiga. I do not even have the hardware, actually.

However, if I recall correctly, I think there were references to manufacturer id in bluegiga implementation? EDIT: here https://github.com/openhab/openhab2-addons/blob/63114233c7f7002d1fbfaee707a122e14bc254c0/bundles/org.openhab.binding.bluetooth.bluegiga/src/main/java/org/openhab/binding/bluetooth/bluegiga/BlueGigaBluetoothDevice.java#L195

Yes, I saw this implementation, but didn鈥榯 do deep dive yet.

Cause of the issue is a type casting error here: https://github.com/openhab/openhab2-addons/blob/63114233c7f7002d1fbfaee707a122e14bc254c0/bundles/org.openhab.binding.bluetooth.bluegiga/src/main/java/org/openhab/binding/bluetooth/bluegiga/BlueGigaBluetoothDevice.java#L196

Returned type is actually Map<Short, int[]> which obviusly cannot be casted into byte[]. Have no clue why there is no exception thrown. Fix is in preparation.

This was fixed as of #6995 .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nikos78 picture Nikos78  路  5Comments

bennybubble picture bennybubble  路  4Comments

kubawolanin picture kubawolanin  路  4Comments

LukasA83 picture LukasA83  路  5Comments

DanielMalmgren picture DanielMalmgren  路  5Comments