I am fairly new to the gadgeteer world. I am heavily versed in Arduino and have many years of experience with that hardware. I am trying to get the wifi module up and running with my gadgeteer and am having some serious issues. Primarily, every example I try, including yours, the “wifi” nor the “WiFiNetworkInfo” are even defined in the context. I can get there with WiFi_RS21 but the Scan() function isn’t present. I feel like I am missing a crucial piece here to make it work. Any thoughts? I am updated to 4.2 and all hardware is also updated.
I certainly agree on the archaic nature of the thread, however being new to the gadgeteer and .net it requires a bit of a history lesson to catch up. The problem seems to be a missing library on my part. “wifi” is not defined when I try to implement it which is what is leading me to believe a connection is being dropped. Everyone’s code seems to be identical to what I have which again, leads me to believe I am missing some library reference.
I will generally construct a program using the create gadgeteer 4.2 dialog, populate the layout with modules and drop code into ProgramStarted(). It took me a while to figure out Main() was being called in Program.Generated.cs so you can probably imagine it has been a rough start.