User Manual
LonTalk Stack Developer’s Guide 15
Task Additional Considerations Reference
Structure the layout and
interoperable interface of
your LonTalk Stack device
by creating a model file
You must define the interoperable
interface for your device in a model
file, using the Neuron C (Version 2.1)
language, for every application that
you implement. You can write this
code by hand, derive it from an
existing Neuron C application, or use
the NodeBuilder Code Wizard
included with the NodeBuilder
Development Tool to create the
required code using a graphical user
interface.
Chapter 6,
Creating
a Model File
Appendix C,
Neuron
C Syntax for the
Model File
Use the LonTalk Interface
Developer utility to generate
device interface data, device
interface files, and a
skeleton application
framework
You must execute this utility, a simple
click-through wizard, whenever the
model file changes or other
preferences change. The utility
generates the interface files (including
the XIF file) and source code that you
can compile and link with your
application. This source code includes
data that is required for initialization
and for complete implementations of
some aspects of your device.
Chapter 7,
Using the
LonTalk Interface
Developer Utility
Complete the LonTalk API
event handler functions and
callback handler functions to
process application-specific
L
ONWORKS events
You must complete the event handler
functions and callback handler
functions for every application that
you implement, because they provide
input from network events to your
application, and because they are part
of your networked device’s control
algorithm.
Chapter 8,
Developing a
LonTalk Stack
Device Application
Appendix D,
LonTalk API
Modify the Operating
System Abstraction Layer
(OSAL) files for your
application’s operating
system
Integrating the
Application with an
Operating System in
Chapter 8,
Developing a
LonTalk Stack
Device Application
Modify the non-volatile data
(NVD) driver files
Depending on the type of non-volatile
memory that your device uses, you
can use one of the non-volatile data
drivers provided with the LonTalk
Stack, make minor modifications to
one of these drivers, or implement
your own driver.
Providing Persistent
Storage for
Non-Volatile Data in
Chapter 8,
Developing a
LonTalk Stack
Device Application