# Connection Plugin for Micropython on ESP 8266 / other microcontroller boards

**URL:** <https://forum.ansible.com/t/connection-plugin-for-micropython-on-esp-8266-other-microcontroller-boards/35924>\
**Category:** Ansible Developer\
**Tags:** galaxy-ng\
**Created:** [October 27, 2021, 12:37am UTC](https://forum.ansible.com/t/connection-plugin-for-micropython-on-esp-8266-other-microcontroller-boards/35924 "2021-10-27T00:37:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_Cotter-Llewellyn](https://avatars.discourse-cdn.com/v4/letter/i/ce7236/32.png) [@Ian\_Cotter-Llewellyn](https://forum.ansible.com/u/Ian_Cotter-Llewellyn)\
**Post date:** [October 27, 2021, 12:37am UTC](https://forum.ansible.com/t/connection-plugin-for-micropython-on-esp-8266-other-microcontroller-boards/35924/1 "2021-10-27T00:37:28Z")

</div>

Hi there,  
I’m pretty new to Ansible so thought I’d jump in at the deep end and develop a plugin to allow file copy and some execution on microcontrollers running micropython.

I have the bones of it working, but not really properly - only with filenames hardcoded in the plugin!! I have a Connection class based on the ‘local’ plugin example. In there I have changed the \_connect method to actually connect and login to the microcontroller.

My issues:

- In the put\_file method, in\_path and out\_path are radically different to what I’ve specified in my playbook.yml - what am I missing / how do I retrieve them?
- I haven’t found a diagram of how Ansible makes use of plugins such as the connection type. It’s unclear to me what objects and variables are available for use.
- If anyone is aware of another project that has done what I’m trying to do, please let me know - a search on Ansible Galaxy didn’t reveal anything (to me at least!)

Any advice would be greatly appreciated.

Best,  
Ian
