From the point of view of the application programmer ArdweeNET will be very simple to program for. You do not need to know anything about network programming, error detection protocols etc. That's all handled by the APE chip.

Because the ArdweeNODE is Arduino compatible programming is as easy as any other Arduino.

Also the simple publish/subscribe method used by ArdweeNET allows you to read data from and write data to the network as if it were a normal peripheral device. This is done by writing to and reading from network variables (NVs), when a publishing node writes a new value to an NV that value is replicated around the network on any nodes that subscribe to the same NV from where it can be read by the application on the subscribing node.

For example, on a node that reads a battery voltage the code may be as simple as this.

void setup () {
     apePublish(1);// tell the APE that we will be publishing data to NV 1
}

void loop ()
     apeWrite(1, analogRead(A0)); // publish the data
     delay(1000);
}

  Meanwhile a node over a kilometer away that displays the voltage may just have this code.

void setup () {
     apeSubscribe(1);  // tell the APE that we want to see any data published to NV 1
}

void loop () {
     lcd.print(apeRead(1));  // read the data and display on an LCD
}

In this example the parameter 1 used tells the APE what NV to write to or read from. As long at the numbers are the same for both publishing and subscribing nodes the data will be transferred.

Normally of course magic numbers would not be used, system NV numbers would be defined as human-readable text, but for a simple ad-hoc network numbers will work the same.


All electronics information and designs on this site is released under
the Creative Commons CC BY-SA and/or Open Hardware licences.
Copyright is reserved however (see below)
This material is not in the public domain.




Copyright © 1973-2013 Rob Gray, All rights reserved.
PO Box 450, Gin Gin, QLD, Australia.
www.robgray.com