KeyError with mkr1000

Plugin to facilitate the communication (read/write/set PIN config) between INDIGO and an ARDUINO through WiFi/ETHERNET. Included is an example “SKETCH” for an ARDUINO that should work without modifications.
abplus
Posts: 50
Joined: Tue May 29, 2018 1:01 pm
Location: Westerham, Kent

KeyError with mkr1000

Post 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.
User avatar
kw123
Posts: 8457
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: KeyError with mkr1000

Post by kw123 »

I will check next week


Sent from my iPhone using Tapatalk
abplus
Posts: 50
Joined: Tue May 29, 2018 1:01 pm
Location: Westerham, Kent

Re: KeyError with mkr1000

Post by abplus »

Thanks very much.
User avatar
kw123
Posts: 8457
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: KeyError with mkr1000

Post 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
abplus
Posts: 50
Joined: Tue May 29, 2018 1:01 pm
Location: Westerham, Kent

Re: KeyError with mkr1000

Post by abplus »

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

Kindest regards,

Andrew.
User avatar
kw123
Posts: 8457
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: KeyError with mkr1000

Post by kw123 »

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

Karl


Sent from my iPhone using Tapatalk
Post Reply

Return to “ARDUINO Plugin”