configuration variables. There are “automatic” ways to
bring our Moray up, but I prefer the old school “I know
how because I know why” methodology. I entered just
enough network information (SSID and passkey) to allow
the Moray to pull itself up using DHCP.
As you can see in Screenshot 6, I urged the network
up with the nup (network_up) command. To be sure that
everything was up-to-date, I then issued the ota command,
which reaches out to the ACKme server and downloads
the latest Numbat firmware. At this point, I disabled DHCP
(set network.dhcp.enabled 0) and set up the static
gateway, IP, and netmask values using these set static
set static.gateway 192.168.0.1
set static.ip 192.168.0.99
set static.netmask 255.255.255
While I was on a roll, I used the set commands
to enable auto join, hide the passkey (for enhanced
protection against hackers), and enable the server
set wlan.auto_join.enabled 1
set wlan.hide_passkey 1
set http.server.enabled 1
We should be able to call up the index.html file
that represents the default web application by
kicking off a browser and entering http://192.168.0.99 in
the browser’s URL box. All went well, and Screenshot 8
API. So, we’re going to take
advantage of the example
web application and use its
file transfer functionality to
place our newly minted
indexM.html file into the Numbat’s external serial Flash.
As you can see in Screenshot 10, it only takes a point
and a click to load the file. We’ll need to have the image
of the Moray available for the indexM.html available in the
Numbat’s Flash, as well. I’ll load it in the same manner.
Okay. The desired files are loaded. However, they will
not be called until we tell WiConnect to use them. As it
Now that we have a working web server running on
our Moray, we can turn our attention to building a simple
web page that will ultimately be loaded into the Numbat’s
external Flash memory.
I’m a Dreamweaver fan.
So, to make it super simple,
I’m going to drop a smaller
version of Photo 1 into a new
HTML document, add some
text, and save it as
indexM.html. A quick look at
my make-shift indexM.html
file from a Dreamweaver
point-of-view is shown in
The example web
application demonstrates the
capabilities of the WiConnect
May 2015 71
■ Screenshot 7. The factory-fresh Moray development board is
now officially up on the EDTP LAN operating as a web server,
listening on port 80.
■ Screenshot 6. Once the Moray is on a network, we can
issue the OTA (over the air) command to update its
firmware by way of the remote master ACKme server.
■ Screenshot 8. This is the index.html page that represents the example web application
that is shipped with the Numbat's operational firmware.