jxyinjian / BACnetClientExampleCPP

A basic BACnet IP client example written in C++ using the CAS BACnet Stack.

Home Page:https://www.bacnetstack.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BACnet Client Example CPP

A basic BACnet IP client example written with C++ using the CAS BACnet Stack. This client example is ment to be used with the BACnet IP server example and expects a device with the following objects.

  • Device: 389999 (Device Rainbow)
    • analog_input: 0 (AnalogInput Bronze)
    • analog_output: 1 (AnalogOutput Chartreuse)
    • analog_value: 2 (AnalogValue Diamond)
    • binary_input: 3 (BinaryInput Emerald)
    • binary_output: 4 (BinaryOutput Fuchsia)
    • binary_value: 5 (BinaryValue Gold)
    • multi_state_input: 13 (MultiStateInput Hot Pink)
    • multi_state_output: 14 (MultiStateOutput Indigo)
    • multi_state_value: 19 (MultiStateValue Kiwi)
    • trend_log: 20 (TrendLog Lilac)
    • bitstring_value: 39 (BitstringValue Magenta)
    • characterstring_value: 40 (CharacterstringValue Nickel)
    • data_value: 42 (DateValue Onyx)
    • integer_value: 45 (IntegerValue Purple)
    • large_analog_value: 46 (LargeAnalogValue Quartz)
    • octetstring_value: 47 (OctetstringValue Red)
    • positive_integer_value: 48 (PositiveIntegerValue Silver)
    • time_value: 50 (TimeValue Turquoise)
    • NetworkPort: 56 (NetworkPort Umber)

Usage

Usage: BACnetClient {IPAddress}
Example: BACnetClient 192.168.1.126

Help:
- Q - Quit
- W - Send WhoIs message
- R - Send Read property messages
- U - Send Write property messages

Building

A Visual studio 2019 project is included with this project.

This project also auto built using Gitlab CI on every commit.

Releases

Build versions of this example can be downloaded from the releases page:

https://github.com/chipkin/BACnetClientExampleCPP/releases

About

A basic BACnet IP client example written in C++ using the CAS BACnet Stack.

https://www.bacnetstack.com/


Languages

Language:C++ 97.3%Language:Makefile 2.6%Language:C 0.1%