This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Interactive Pyaci - Sending mesh packets - Error

I'm trying to follow the guide Sending mesh packets in the Interactive PyACI section on the nordic infocenter. 

I've installed the required prerequisites using pip. 

Here are the commands I'm issuing to get to the the error:

python interactive_pyaci.py -d COM7 COM8 --no-logfile

for dev in d: dev.quick_setup()

d[0].event_filter_disable()
d[1].event_filter_disable()

d[0].send(cmd.AddrPublicationAdd(d[1].local_unicast_adress_start))
d[1].send(cmd.AddrPublicationAdd(d[0].local_unicast_adress_start))

publish_handle = 0
appkey_handle = 0

d[0].send(cmd.PacketSend(appkey_handle, d[0].local_unicast_adress_start, publish_handle, 1, 0, "Hello World"))

Once I run: d[0].send(cmd.PacketSend(appkey_handle, d[0].local_unicast_adress_start, publish_handle, 1, 0, "Hello World"))

I get the following error:

TypeError: __init__() missing 1 required positional argument: 'data'

In [10]: missing 1 required positional argument: 'data'
  File "<ipython-input-10-d084ceded5ba>", line 1
    missing 1 required positional argument: 'data'
            ^
SyntaxError: invalid syntax

I've replicated this problem on both Windows and Mac.

pip version: 10.0.1
python version: 3.6.5

Any insights or help would be appreciated.

Parents Reply Children
No Data
Related