Skip to content

BACnet Server Example in Golang using the CAS BACnet Stack

Notifications You must be signed in to change notification settings

chipkin/BACnetServerExampleGolang

Repository files navigation

BACnet Server Example Golang

A basic BACnet IP server example written in Golang using the CAS BACnet Stack.

Compile and Run

  1. Place the following in the source directory: CASBACnetStack_x64_Debug.dll, CASBACnetStack_x64_Debug.so, CASBACnetStack_x64_Release.dll, CASBACnetStack_x64_Release.so, and CASBACnetStackDLL.h. These can be found in the CAS BACnet Stack.
  2. Linux only: Replace backslash with slash in go.mod.
  3. Run go run . in the source directory to run the example. Golang v1.9 or above is required.

Pre-configured with the following example BACnet device and objects:

  • Device: 390000 (Example Device Yellow)
    • analog_input: 0 (Analog Input White)

Example Output

FYI: CAS BACnet Stack Golang Server Example v0.0.1
FYI: https://github.com/chipkin/BACnetServerExampleGolang
FYI: BACnet Version: 3.28.1.1980
Setting up callbacks... Done.
Setting up server device... Done.
Adding AnalogInput... Done.
Entering main loop...

About

BACnet Server Example in Golang using the CAS BACnet Stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published