Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By svideo
#80518 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!
User avatar
By svideo
#80519 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.
User avatar
By ChrisMicro
#80572
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