How to use the library - GideonLeGrange/panstamp-java GitHub Wiki

The library provides a hierarchical representation of a panStamp network, which includes devices, the registers on a device and the endpoints associated with the registers. To best understand what this means, you have to be familiar with the panStamp environment, and have a fair idea of how the Simple Wireless Abstract Protocol (SWAP) works. I recommend going through the panStamp wiki and familiarising yourself with that material before diving into the Java code examples.

Examples

These examples assume we have a panStamp network established and a panStamp running the 'modem' sketch connected to a computer using a panStick USB dongle.

The examples are split into simple and advanced groups. The simple examples should teach you the basics of working with the network, device, register and endpoint abstractions that model the panStamp environment.

The advanced examples are of interest to users who wish to do deeper integration or more complex applications.

Simple examples

Some simple examples show the basics:

  • [Working with a network](Working with a network)
  • [Working with a panStamp](Working with a panStamp device)
  • [Working with a register](Working with a register)
  • [Working with an endpoint](Working with an endpoint)

Advanced examples

  • [Managing device definitions](Managing device definitions)
  • [Persisting device state](Persisting device state)