skarg
4db370cc3a
Un-refactored property-list module to lower resource requirements on small devices.
2015-10-18 03:39:28 +00:00
ekh
38a723bafb
Committing minor changes (comments only) as an exercise in contributing..
2015-09-26 19:45:56 +00:00
skarg
63288d062c
Added parser for command line parsing of a BACnet BitString. This is nice if you want to write Event Enable, for example. Expects the ASCII bits as "1011001" or "1,0,1,1,0,0,1" or "1 0 1 1 0 0 1".
2014-06-13 21:25:40 +00:00
skarg
c3326b324c
Cleaned up some warnings found when compiling with Visual Studio Express 2010.
2014-01-14 20:03:00 +00:00
skarg
85aed6b123
Fixed compile error exposed by unit test. Thanks, Morten!
2013-12-09 19:30:19 +00:00
skarg
b8267024d7
fixed compile warning with a cast
2013-11-19 04:49:44 +00:00
skarg
94cf94b09d
added text printing for property-list property. Added property-list property to analog-input object.
2013-11-16 21:49:06 +00:00
skarg
4d79c26a8c
Updated Lighting Output object. Added Channel object. Not complete and not fully tested.
2013-11-11 22:27:55 +00:00
skarg
0600454320
Renamed and fixed proprietary min-max range defines for units, program-error, restart-reason, reliability, event, life-safety-mode, life-safety-operation, life-safety-state, silenced-state, maintenance, object-type, and vt-class. Updated unit tests and other files affected. The max range must be declared inside of enum so that compilers will allocate adequate sized datatype for enum which is used to store decoded values.
2013-10-09 15:42:26 +00:00
skarg
efe8587f9f
Fixed [bugs:#24] comparison is always false. Thank you, Anonymous!
2013-08-29 18:14:07 +00:00
skarg
bc1017ee60
cleaned up warnings and build of unit tests
2013-03-13 22:34:08 +00:00
skarg
ba3242aafd
indented using indent.sh script to get uniform looking code for release
2013-03-13 22:17:13 +00:00
netp
834975356e
changed local type for compiler warning
2012-08-10 09:57:45 +00:00
skarg
f47c1df1b4
converted any C++ comments to C comments using script.
2012-05-13 15:08:17 +00:00
skarg
48e2c60ce2
indented to standard from script
2012-05-13 15:07:12 +00:00
skarg
173e9fb9a9
Corrected PrivateTransfer unit tests.
...
Fixed hex-ascii conversion for zero length string. Fixed Octet-string unit test in BACnet application. Bug found by unit test.
2012-05-13 15:02:40 +00:00
skarg
c0f2af65e0
Corrected octet string decoding in BACapp module for string length of zero. Added zeroes at the end of an octet string when initialized. Bug found by ptransfer unit test.
2012-05-12 15:39:16 +00:00
skarg
287fce78be
Corrected wildcard time and date parsing. Bug found by unit test.
2012-05-12 14:17:00 +00:00
petermcs
2e51778790
Add facility to adjust the services and and other features supported via config.h. This is to reduce code size in embedded builds where the compiler does not do a great job in removing functions that are never called. This is particularly useful for simple server only applications where decoding of response packets and encoding of requests are not required for example.
...
Also added possibility for RMP of encoding large items in-line in the response packet so that the object RP handlers know how much space they really have without the need for a full APDU buffer being maintained.
2012-04-30 10:14:18 +00:00
skarg
bc8d262add
Added scanf bit-width modifiers due to ccpcheck warnings.
2012-04-16 22:00:53 +00:00
skarg
4932dd1e79
Corrected edge case of parsing application for empty list.
2012-04-07 21:15:09 +00:00
skarg
a8280dda95
Added CharacterString Value object example and unit tests, and added to demo/server example application.
...
Added Multi-state Value object example and unit tests, and added to demo/server example application.
Fixed Analog Input object, Analog Output object, Analog Value object, Device object, Multi-state Input object, Multi-state Output object examples to return correct error codes for WriteProperty service (per BACnet 135.1-2009-9.22.2.6).
Fixed top level ReadProperty and WriteProperty handlers in Device object to return correct error codes (per BACnet 135.1-2009-9.22.2.5)
2012-03-22 18:22:42 +00:00
skarg
7d87b88d47
Corrected compiler warnings.
2011-12-20 15:39:30 +00:00
gri6507
fd4a0ebb62
* Updated the perl bindings to work with the new style extract API and removed vestigial code
...
* Updated the perl bindings readme.txt
* Fixed a small bug in the new bacapp_print_value() function which incorrectly interpreted the return status from the snprintf function.
2011-12-15 00:03:04 +00:00
gri6507
6e82afde79
Another attempt to refactor the bacapp_print_value function into a print() and
...
an extract() function. The original implementation used calloc() inside the
extract() routine which forced all clients, including embedded builds, to have a
heap. This was very heavy handed. The new solution is must more flexible.
* If the client want to use the print() functionality, they will have to support
calloc and string safe variable argument length function similar to snprintf.
This seems reasonable because if you can print, then you can typically support
these complex capabilities.
* For clients that don't want to print, but still want to parse the bacpp value
into a string, they can use the new extract() method, which only requires
supports for snprintf. This would require a compile time definition of
BACAPP_SNPRINTF_ENABLED.
* For clients which don't want the overhead of these heavy handed methods, it is
possible to set compile time flags to not inherit either the print() or the
extract() functions.
2011-12-12 16:22:04 +00:00
skarg
4c78ada0ed
Changes from r2160 broke microcontroller ports compiles. Reverting until fixed.
2011-12-07 03:16:57 +00:00
gri6507
2b433d72a7
Added the ability to parse the OBJECT_PROPERTY_VALUE into a string (bacapp_extract_value) in addition to outputting it to a stream (bacapp_print_value).
2011-11-28 15:33:58 +00:00
tbrennan3
0291493fd2
Fixes a build error when BACAPP_PRINT_ENABLED=1 but PRINT_ENABLED isn't.
2011-10-20 19:25:20 +00:00
skarg
dda49e2824
Added Relinquish-Default to Enumerated special property cases.
2011-10-06 15:24:30 +00:00
skarg
120c2734ee
Added ascii-hex conversion in the octet-string library to allow ascii-hex to be parsed correctly from demo applications.
2011-09-17 04:21:32 +00:00
skarg
3e134011a1
Splinted the code, and fixed the errors.
2011-08-24 23:29:53 +00:00
tbrennan3
a92160f73d
Revised BBMD registration functions to return something approximating a goodness value. (Still too happy for invalid BBMDs, but it's a start.)
...
Fixed handling of bacapp_decode_context_data() for some of the more unusual (empty, etc) cases I've seen.
2011-08-22 19:45:41 +00:00
skarg
3e1cb1847f
Indented project.
2011-08-17 02:27:11 +00:00
k001a
ccf1335979
Added Notification Class object. I will use it to intrinsic reporting.
...
Notification Class objects can be disabled when define INTRINSIC_REPORTING (bacdef.h) will be removed.
2011-06-17 16:23:47 +00:00
skarg
2a0bf4926a
Performed standard indent script indent.sh on project files.
2010-12-15 19:02:40 +00:00
skarg
8041006068
Corrected splint warning.
2010-11-28 21:04:53 +00:00
skarg
feb44efb87
Corrected missing REAL len decoding. Thank you, Julien!
2010-10-25 11:44:08 +00:00
skarg
f934f8add8
Changed bacapp data len function to just decode the len without regard to the storage ability of the internal data structures.
2010-10-13 02:29:55 +00:00
skarg
86dbaf409b
Added handling for bacapp decode value returning error codes.
2010-10-12 03:02:05 +00:00
skarg
e9249b5b5e
Added test for a decoding problem where the stack is unable to decode something, and retrofitted into WriteProperty for each of the demo objects by returning an Error, Out of Range.
2010-10-12 01:17:50 +00:00
skarg
9569f2c536
Fixed EOL and performed standard indentation.
2010-09-16 22:00:47 +00:00
skarg
50a8a3f2fb
Changed some plumbing for printing values to handle the case of a Present-Value enumerated property from a proprietary object type.
2010-09-02 13:16:27 +00:00
skarg
b769dcbe1d
Indented.
2010-08-18 00:11:35 +00:00
skarg
6c9ef7211d
Fixed indent script, and indented files.
2010-07-19 23:19:54 +00:00
skarg
a639989a3a
Removed trailing spaces.
2010-06-28 00:51:13 +00:00
skarg
6f9ba36967
Added extra sub-state for MS/TP from Addendum 135-2008v.
2010-06-26 03:55:20 +00:00
petermcs
04e99f3671
Changes to reduce the number of warnings with Visual C++2008 warning level 4 to a minimum.
2010-05-14 14:21:48 +00:00
skarg
710cfccfef
Indented using indent script.
2010-05-04 21:06:26 +00:00
tbrennan3
fac19dff98
Made bacepics' output more correct for VTS3 EPICS parsing.
...
Put command line argument checking and usage printing into their own functions,
and added an optional argument to show values instead of '?' for properties like Present_Value.
Added screening of properties that should normally be replaced with '?' on output.
Added a few enums to bactext (Node_Type, Polarity).
2010-04-16 20:52:40 +00:00
tbrennan3
c5977b8933
Added some function documentation and a little more support for Structured Views.
2010-04-15 20:45:22 +00:00