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
tbrennan3
cc20f225b9
The beginning of doxygenation:
...
As a first step, added an @file description for each file.
2010-02-14 05:29:43 +00:00
skarg
f0863c0238
Refactored RP, WP, RPM to reduce coupling with objects for Linux and Win32 ports.
2010-02-10 16:27:31 +00:00
petermcs
bfa8936bf5
Changed a bunch of debug and information printfs so that they have a better chance of working on systems where int is smaller than 32 bits also fixed the signed/unsigned type of some to match the type of the arguments.
2010-01-26 21:30:38 +00:00
petermcs
916067ec59
Added skeleton Trend Log object. Currently allows properties to be read and written but has little of the required logic for trending implemented yet.
2009-11-23 08:27:09 +00:00
skarg
c04e69da8c
Fixed EOL, indent.
2009-10-24 17:02:59 +00:00
skarg
a7c598306b
Changed the object type print to be as defined in EPICS.
...
Changed property names to show "proprietary #" when in proprietary range.
2009-10-15 04:06:19 +00:00
skarg
5b60c94fad
Refactored timestamp for use in Alarm properties in objects.
2009-10-10 21:48:13 +00:00
petermcs
e8d91faaac
Added encoding and decoding for ReadRange service, associated handlers and test application.
2009-09-25 21:56:49 +00:00
minack
a944510441
Fixed up bug with encode_application_double function.
...
Added new bacapp_decode_application_data_safe function and other *_safe functions that aim to prevent buffer overruns if encoded application message is malformed.
Note: bacstr unit tests currently have one failure.
2009-08-10 00:06:56 +00:00
skarg
db61a1122f
Ran indent script.
2009-07-29 18:06:33 +00:00
skarg
8dc12fcd98
Corrected a minor issue in the bacapp.c file on the PC side when printing strings with garbage characters with the 8th bit set. The code passed a signed char to the isprint() function which gets sign extended to an int and then caused an assert in the Microsoft library code (Visual C++ Express 2008). Thank you, Peter!
2009-06-17 23:22:48 +00:00