-->
Page 1 of 1

mock Arduino environment on host computer (experimental)

PostPosted: Sun Feb 10, 2019 7:32 pm
by svideo
In the release notes for the 2.5.0 release I find the following Great Addition:

sketch execution on mock Arduino environment on host computer (experimental)


I have been looking for information on this feature and haven't come up with anything, although I'm probably just missing something obvious. Does anyone have any more details here? Does this allow use of mock functionality for unit testing? Full sketch execution? In any event, this does sound like a Great Addition and I would like to learn more about it!

Re: mock Arduino environment on host computer (experimental)

PostPosted: Sun Feb 10, 2019 7:35 pm
by svideo
I think I just found the answer to my own question - this looks great!

https://github.com/d-a-v/Arduino/blob/h ... README.txt

Sketch emulation on host
------------------------

This environment let compile esp8266/Arduino sketches into native
environment. Network (tcp, udp, including ssl and multicast) is linked to
local host interfaces. WiFi is trivialy emulated and reported as "just"
already connected and usable.

Currently network emulation is a complete rewrite of
WiFiClient+WiFiServer/ClientContext and WifiUdp/UdpContext using socket
posix API. Further work will optionally propose native lwIP library
instead.

Re: mock Arduino environment on host computer (experimental)

PostPosted: Mon Feb 11, 2019 6:14 am
by QuickFix
Such an option will definitely increase the ease of debugging in the development stage.
Thanks for noticing, it looks like I'm going to upgrade soon. 8-)

Re: mock Arduino environment on host computer (experimental)

PostPosted: Fri Feb 15, 2019 7:22 am
by ChrisMicro
svideo wrote:In the release notes for the 2.5.0 release I find the following Great Addition:

sketch execution on mock Arduino environment on host computer (experimental)


I have been looking for information on this feature and haven't come up with anything, although I'm probably just missing something obvious. Does anyone have any more details here? Does this allow use of mock functionality for unit testing? Full sketch execution? In any event, this does sound like a Great Addition and I would like to learn more about it!


Is the mock Arduino environment something like
https://github.com/ChrisMicro/ArduinoOnPc