KeyError with mkr1000

Posted on
Thu Jan 02, 2020 11:50 am
abplus offline
Posts: 50
Joined: May 29, 2018
Location: Westerham, Kent

KeyError with mkr1000

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.

Posted on
Thu Jan 02, 2020 2:03 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: KeyError with mkr1000

I will check next week


Sent from my iPhone using Tapatalk

Posted on
Thu Jan 02, 2020 3:22 pm
abplus offline
Posts: 50
Joined: May 29, 2018
Location: Westerham, Kent

Re: KeyError with mkr1000

Thanks very much.

Posted on
Sat Jan 04, 2020 10:26 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: KeyError with mkr1000

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

Posted on
Tue Jan 07, 2020 7:25 am
abplus offline
Posts: 50
Joined: May 29, 2018
Location: Westerham, Kent

Re: KeyError with mkr1000

Ahhh, I should have spotted that. Thanks Karl, I'll fix it tonight.

Kindest regards,

Andrew.

Posted on
Tue Jan 07, 2020 7:28 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: KeyError with mkr1000

I am home tonight and will publish a formal update tomorrow.

Karl


Sent from my iPhone using Tapatalk

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests