Add custom adapter addons from V0.3

Hi,

After the update 0.4 I can’t run my own addons anymore. I’ve built three differents addons which was working perfectly on V 0.3. After the update, I try to add them in /home/pi/mozilla-iot/gateway/build/addons as before but after reboot my addons have disapear.
Any idea of how to resolve this problem ?

Should I modify all my code and create a complete new one using the new Things framework ?

(My add on is still available here : https://github.com/aragnac/gcode_adapterV3 )

Best regards,

Nicolas

Hi,

Installing add-on path is changed on ver 0.4.
We should add add-on to ~/.mozilla-iot/addons/, and we can change path with modifying profileDir in gateway/config/local.js.

@nicolasbonemme The API level was bumped from 1 to 2 for 0.4, so your custom add-on(s) will need to be bumped as well (in package.json). The main difference is that the required libraries were separated from the gateway itself, so that will need to be changed. For an example of how to support both API levels, see here.

Also, as @sogaani said, the add-ons themselves have been moved. They are automatically moved when the gateway starts up.

Ok, I’ll check it now.
Thanks for your quick answer.

Nicolas