Page 1 of 1

KeyError with mkr1000

PostPosted: Thu Jan 02, 2020 11:50 am
by abplus
Hi, can anyone help me with this please ? I'm having my first play with an Arduino mkr1000 board. The sketch seems fine and the board has joined my wifi no problem at all. However the plugin is reporting this:

Code: Select all
   
arduino Error                   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   arduino                          looping to check devices for updates:
   arduino Error                   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 269, in runConcurrentThread
KeyError: (u'mkr1000',)



Any ideas ?

Thanks,

Andrew.

Re: KeyError with mkr1000

PostPosted: Thu Jan 02, 2020 2:03 pm
by kw123
I will check next week


Sent from my iPhone using Tapatalk

Re: KeyError with mkr1000

PostPosted: Thu Jan 02, 2020 3:22 pm
by abplus
Thanks very much.

Re: KeyError with mkr1000

PostPosted: Sat Jan 04, 2020 10:26 am
by kw123
in plugin.py devTypes is "mrk1000" while in devices.xml dev-type is "mkr1000"

will fix in plugin.py when I am back home mid next week

Code: Select all
devTypes = {"UNO":"arduino","MEGA":"arduino","mrk1000":"arduino","FREEE-Undefined":"arduino","ESP16":"arduino","ESP1":"arduino","sainsmart8-1":"sainsmart"}

vs :
    <Device type="custom" id="mkr1000"> <Name>mkr1000</Name>


.. you could fix it yourself:
in /Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/arduino.indigoPlugin/Contents/Server Plugin/plugin.py
change line 21
mrk1000
to
mkr1000

and restart the plugin

Karl

Re: KeyError with mkr1000

PostPosted: Tue Jan 07, 2020 7:25 am
by abplus
Ahhh, I should have spotted that. Thanks Karl, I'll fix it tonight.

Kindest regards,

Andrew.

Re: KeyError with mkr1000

PostPosted: Tue Jan 07, 2020 7:28 am
by kw123
I am home tonight and will publish a formal update tomorrow.

Karl


Sent from my iPhone using Tapatalk