Strip tabs and trailing white spaces, and fix end of files (#748)

* format: Strip trailing whitespaces

We want to get rid of trailing whitespaces completly as they make just git
noice. Much better to start using automated tools to get rid of them once and
not getting them back again. This way git history will be cleaner and review
easier.

Commit was generated with:

    pre-commit run --all-files trailing-whitespace

* format: Files should have exactly one new line end of them

It is good practice that every file has one new line. It is not now days so
mandatory but it also is not nice if file has lot of newlines end of it. We will
use pre-commit which takes automatically care about this so let's fix all.

Commit was generated with:

    pre-commit run --all-files end-of-file-fixer

* format: Convert tabs to spaces

Project mostly use spaces over tabs. When mixing tabs and spaces this usually
makes formatting issues and also when changing those in commits it will make lot
of git noise. We will force spaces most of the time and use pre-commit to fix.

Commit was generated with:

    pre-commit run --all-files remove-tabs

---------

Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
This commit is contained in:
Kari Argillander
2024-08-25 22:13:57 +03:00
committed by GitHub
parent 9e0657424e
commit 369da70f2a
455 changed files with 7147 additions and 7249 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ $ bacrp 123 1 101 85
If you want read the Priority-Array of Analog Output 101
in Device 123, you could send the following command:
$ bacrp 123 1 101 87
If you want read the length of Priority-Array of Analog
If you want read the length of Priority-Array of Analog
Output 101 in Device 123, you could send the following command:
$ bacrp 123 1 101 87 0
@@ -91,7 +91,7 @@ The default Max-Master is 127.
Used for BACnet MS/TP datalink only.
.IP BACNET_MSTP_BAUD
If non-null, a value baud rate of 9600, 19200, 38400, 57600,
and 115200.
and 115200.
The default baud rate is 9600.
Used for BACnet MS/TP datalink only.
.IP BACNET_MSTP_MAC
+3 -3
View File
@@ -13,7 +13,7 @@ bacwi \- send BACnet WhoIs service request to BACnet devices
an I-Am service response from one or more BACnet devices
on the network. I-Am responses include a Device Object-Identifier,
a Vendor-Identifier, a Max-APDU size, and segmentation information.
By its nature, I-Am responses include the source address and
By its nature, I-Am responses include the source address and
any network layer information necessary to communicate with the
device.
@@ -70,7 +70,7 @@ The default Max-Master is 127.
Used for BACnet MS/TP datalink only.
.IP BACNET_MSTP_BAUD
If non-null, a value baud rate of 9600, 19200, 38400, 57600,
and 115200.
and 115200.
The default baud rate is 9600.
Used for BACnet MS/TP datalink only.
.IP BACNET_MSTP_MAC
@@ -100,4 +100,4 @@ Steve Karg <skarg@users.sourceforge.net>
.BR bacucov (1),
.BR bacwh (1),
.BR bacwp (1),
.BR address_cache (5)
.BR address_cache (5)
+12 -12
View File
@@ -10,7 +10,7 @@ bacwp \- send BACnet WriteProperty service request to a BACnet device
.SH DESCRIPTION
.B bacrp uses the BACnet WriteProperty service request to write
a property value to a BACnet device on the network. WhoIs and
a property value to a BACnet device on the network. WhoIs and
I-Am are used for device binding. A simple Ack or error message
is returned to stdio.
@@ -40,21 +40,21 @@ Present Value property, the property is 85.
.IP "priority"
This parameter is used for setting the priority of the
write. If Priority 0 is given, no priority is sent. The BACnet
standard states that the value is written at the lowest
write. If Priority 0 is given, no priority is sent. The BACnet
standard states that the value is written at the lowest
priority (16) if the object property supports priorities
when no priority is sent.
.IP "index"
This integer parameter is the index number of an array.
If the property is a BACnetARRAY and writable, individual
elements can be written. If this parameter value is -1,
If the property is a BACnetARRAY and writable, individual
elements can be written. If this parameter value is -1,
it is omitted when writing to the property.
.IP "tag"
Tag is the integer value of the enumeration BACNET_APPLICATION_TAG
Tag is the integer value of the enumeration BACNET_APPLICATION_TAG
in bacenum.h. It is the data type of the value that you are
writing. For example, if you were writing a REAL value, you would
writing. For example, if you were writing a REAL value, you would
use a tag of 4.
Context tags are created using two tags in a row. The context tag
is preceded by a C. Ctag tag. C2 4 creates a context 2 tagged REAL.
@@ -62,16 +62,16 @@ is preceded by a C. Ctag tag. C2 4 creates a context 2 tagged REAL.
.IP "value"
The value is an ASCII representation of some type of data that you
are writing. It is encoded using the tag information provided. For
example, if you were writing a REAL value of 100.0, you would use
example, if you were writing a REAL value of 100.0, you would use
100.0 as the value. If you were writing an Object-Identifier such
as Device object 1, you would use 8:1 as the value. If you were
writing a Boolean, a value of 0 would indicate false, and a non-zero
value would indicate true.
writing a Boolean, a value of 0 would indicate false, and a non-zero
value would indicate true.
.SH BACnet Tags
Here is a brief overview of BACnet property and tags:
Certain properties are expected to be written with certain
Certain properties are expected to be written with certain
application tags, so you probably need to know which ones to use
with each property of each object. It is almost safe to say that
given a property and an object and a table, the tag could be looked
@@ -127,7 +127,7 @@ The default Max-Master is 127.
Used for BACnet MS/TP datalink only.
.IP BACNET_MSTP_BAUD
If non-null, a value baud rate of 9600, 19200, 38400, 57600,
and 115200.
and 115200.
The default baud rate is 9600.
Used for BACnet MS/TP datalink only.
.IP BACNET_MSTP_MAC