Skip to content

Commit 57ea678

Browse files
committed
Updated client example to add the ability for a user to set the downstream device IP
1 parent 5266322 commit 57ea678

File tree

6 files changed

+307
-35
lines changed

6 files changed

+307
-35
lines changed

BACnetClientExample/BACnetClientExample.cpp

Lines changed: 266 additions & 22 deletions
Large diffs are not rendered by default.

BACnetClientExample/BACnetClientExample.vcxproj.user

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
44
<LocalDebuggerWorkingDirectory>$(SolutionDir)..\bin\</LocalDebuggerWorkingDirectory>
55
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
6+
<LocalDebuggerCommandArguments>192.168.1.126</LocalDebuggerCommandArguments>
67
</PropertyGroup>
78
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
89
<LocalDebuggerWorkingDirectory>$(SolutionDir)..\bin\</LocalDebuggerWorkingDirectory>

BACnetClientExample/CASBACnetStackExampleConstants.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ class CASBACnetStackExampleConstants {
7979
//static const uint16_t OBJECT_TYPE_LIGHTING_OUTPUT = 54;
8080
//static const uint16_t OBJECT_TYPE_BINARY_LIGHTING_OUTPUT = 55;
8181
static const uint16_t OBJECT_TYPE_NETWORK_PORT = 56;
82-
//static const uint16_t OBJECT_TYPE_ELEVATOR_GROUP = 57;
83-
//static const uint16_t OBJECT_TYPE_ESCALATOR = 58;
84-
//static const uint16_t OBJECT_TYPE_LIFT = 59;
82+
static const uint16_t OBJECT_TYPE_ELEVATOR_GROUP = 57;
83+
static const uint16_t OBJECT_TYPE_ESCALATOR = 58;
84+
static const uint16_t OBJECT_TYPE_LIFT = 59;
8585

8686
// Property Identifiers
8787
static const uint32_t PROPERTY_IDENTIFIER_ALL = 8;

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Version 0.0.x
44

5+
### 0.0.2.x (2020-Mar-12)
6+
7+
- Updated to allow for user to specifiy the downstream device IP address via the command line.
8+
59
### 0.0.1.x (2020-Mar-03)
610

711
- Inital release.

README.md

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,38 @@
33
A basic BACnet IP client example written with C++ using the [CAS BACnet Stack](https://www.bacnetstack.com/). This client example is ment to be used with the [BACnet IP server example](https://github.com/chipkin/BACnetServerExampleCPP) and expects a device with the following objects.
44

55
- Device: 389999 (Device Rainbow)
6-
- analog_input: 0 (AnalogInput Bronze)
7-
- analog_output: 1 (AnalogOutput Chartreuse)
8-
- analog_value: 2 (AnalogValue Diamond)
9-
- binary_input: 3 (BinaryInput Emerald)
10-
- binary_output: 4 (BinaryOutput Fuchsia)
11-
- binary_value: 5 (BinaryValue Gold)
12-
- multi_state_input: 13 (MultiStateInput Hot Pink)
13-
- multi_state_output: 14 (MultiStateOutput Indigo)
14-
- multi_state_value: 19 (MultiStateValue Kiwi)
6+
- analog_input: 0 (AnalogInput Bronze)
7+
- analog_output: 1 (AnalogOutput Chartreuse)
8+
- analog_value: 2 (AnalogValue Diamond)
9+
- binary_input: 3 (BinaryInput Emerald)
10+
- binary_output: 4 (BinaryOutput Fuchsia)
11+
- binary_value: 5 (BinaryValue Gold)
12+
- multi_state_input: 13 (MultiStateInput Hot Pink)
13+
- multi_state_output: 14 (MultiStateOutput Indigo)
14+
- multi_state_value: 19 (MultiStateValue Kiwi)
15+
- trend_log: 20 (TrendLog Lilac)
16+
- bitstring_value: 39 (BitstringValue Magenta)
17+
- characterstring_value: 40 (CharacterstringValue Nickel)
18+
- data_value: 42 (DateValue Onyx)
19+
- integer_value: 45 (IntegerValue Purple)
20+
- large_analog_value: 46 (LargeAnalogValue Quartz)
21+
- octetstring_value: 47 (OctetstringValue Red)
22+
- positive_integer_value: 48 (PositiveIntegerValue Silver)
23+
- time_value: 50 (TimeValue Turquoise)
24+
- NetworkPort: 56 (NetworkPort Umber)
25+
26+
## Usage
27+
28+
```txt
29+
Usage: BACnetClient {IPAddress}
30+
Example: BACnetClient 192.168.1.126
31+
32+
Help:
33+
- Q - Quit
34+
- W - Send WhoIs message
35+
- R - Send Read property messages
36+
- U - Send Write property messages
37+
```
1538

1639
## Building
1740

submodules/cas-bacnet-stack

0 commit comments

Comments
 (0)