Reply | Reply To: Python API and April update issue. Not connecting.

Home Forums Mooshimeter Support Python API and April update issue. Not connecting. Reply To: Python API and April update issue. Not connecting.

#9598

Another hint with dev version of Python-API (28/4/16) :

E:\BAJADOS\Box Sync\MOOSHIMETER\MOOSHIMETER_PC\Mooshimeter-PythonAPI-dev>Example.py
F9:9B:A0:39:CD:20: -49 1BC5FFA0-0200-62AB-E411-F254E005DBD4
Connected to 20:CD:39:A0:9B:F9
Interval: 24ms
Service Groups:
0018
0118
0A18
D4DB05E0-54F2-11E4-AB62-0002A0FFC51B
1: 2800
2: 2803
3: 2A00
4: 2803
5: 2A01
6: 2803
7: 2A02
8: 2803
9: 2A03
10: 2803
11: 2A04
12: 2800
13: 2803
14: 2A05
15: 2902
16: 2800
17: 2803
18: 2A23
19: 2803
20: 2A24
21: 2803
22: 2A25
23: 2803
24: 2A26
25: 2803
26: 2A27
27: 2803
28: 2A28
29: 2803
30: 2A29
31: 2803
32: 2A2A
33: 2803
34: 2A50
35: 2800
36: 2803
37: 1BC5FFA1-0200-62AB-E411-F254E005DBD4
38: 2901
39: 2803
40: 1BC5FFA2-0200-62AB-E411-F254E005DBD4
41: 2902
42: 2901
Received out of order packet!
Expected: 1
Got : 0
Packet 0
Packet 1
Packet 2
Packet 3
Packet 4
Packet 5
Packet 6
Packet 7
Packet 8
Packet 9
Packet 10
Packet 11
Packet 12
Packet 13
Packet 14
Packet 15
Packet 16
Packet 17
Packet 18
Traceback (most recent call last):
File “E:\BAJADOS\Box Sync\MOOSHIMETER\MOOSHIMETER_PC\Mooshimeter-PythonAPI-dev\Example.py”, line 56, in <module>
BGWrapper.idle()
File “E:\BAJADOS\Box Sync\MOOSHIMETER\MOOSHIMETER_PC\Mooshimeter-PythonAPI-dev\BGWrapper.py”, line 203, in idle
ble.check_activity(ser)
File “C:\Python27\lib\bglib.py”, line 659, in check_activity
while ser.inWaiting(): self.parse(ord(ser.read()))
File “C:\Python27\lib\bglib.py”, line 1038, in parse
self.ble_evt_attclient_attribute_value({ ‘connection’: connection, ‘atthandle’: atthandle, ‘type’: type, ‘value’: value_data })
File “C:\Python27\lib\bglib.py”, line 116, in fire
func(self.obj, earg)
File “E:\BAJADOS\Box Sync\MOOSHIMETER\MOOSHIMETER_PC\Mooshimeter-PythonAPI-dev\BGWrapper.py”, line 107, in notifyHandler
self.chars[args[‘atthandle’]].onNotify(args[‘value’])
File “E:\BAJADOS\Box Sync\MOOSHIMETER\MOOSHIMETER_PC\Mooshimeter-PythonAPI-dev\BGWrapper.py”, line 54, in onNotify
self.unpack()
File “E:\BAJADOS\Box Sync\MOOSHIMETER\MOOSHIMETER_PC\Mooshimeter-PythonAPI-dev\Mooshimeter.py”, line 77, in unpack
self.interpretAggregate()
File “E:\BAJADOS\Box Sync\MOOSHIMETER\MOOSHIMETER_PC\Mooshimeter-PythonAPI-dev\Mooshimeter.py”, line 58, in interpretAggregate
node.notification_handler(b.getBytes(expecting_bytes))
File “E:\BAJADOS\Box Sync\MOOSHIMETER\MOOSHIMETER_PC\Mooshimeter-PythonAPI-dev\Mooshimeter.py”, line 140, in expandReceivedTree
self.tree.unpack(”.join([chr(c) for c in payload]))
File “E:\BAJADOS\Box Sync\MOOSHIMETER\MOOSHIMETER_PC\Mooshimeter-PythonAPI-dev\ConfigNode.py”, line 197, in unpack
l = msgpack.unpackb(plain)
File “C:\Python27\lib\site-packages\msgpack\fallback.py”, line 100, in unpackb
raise ExtraData(ret, unpacker._fb_get_extradata())
msgpack.exceptions.ExtraData: unpack(b) received extra data.

It seems there is a problem with development API as well.