1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00
Commit Graph

84 Commits

Author SHA1 Message Date
Joel Bender
461f1f79f6 bring samples branch up-to-date with stage 2016-01-27 16:55:53 -05:00
Joel Bender
214e8b97ee update tcp contents from strings to bytes, add some debugging to find the problem, changed internal 'Chop' function to 'chop' 2016-01-23 21:27:37 -05:00
Joel Bender
36a2aa754a match darwin as well as linux for triggers, which fixes a really irritating bug in MacOS that kept applications from quitting correctly and they would have to be killed 2016-01-23 21:22:21 -05:00
Joel Bender
b065f5fb24 minor debugging addition 2016-01-23 21:20:23 -05:00
Joel Bender
1bcb93ba3d minor debugging addition 2016-01-23 21:19:31 -05:00
Joel Bender
a2fe66ad00 hooks in the application to set/clear the _app value in the object 2016-01-23 21:18:34 -05:00
Joel Bender
da161c0203 objects get a new attribute that references the application stack they belong to 2016-01-23 21:17:18 -05:00
Joel Bender
96fb40ee8a the issueConfirmedNotifications and lifetime are optional 2016-01-23 21:12:35 -05:00
Joel Bender
ac4cb8bd99 patch for #65 2015-12-16 14:34:22 -05:00
Joel Bender
21c819af72 merging issue-63 (#63) into stage, checking on a routing problem (issue not created yet) 2015-11-02 15:27:29 -05:00
Joel Bender
a85f67699b synchronize changes with other versions 2015-10-28 22:13:16 -04:00
Joel Bender
412f1da368 unpack addresses coming downstream rather than assuming they have been created as IP addresses 2015-10-20 16:54:52 -04:00
Christian Tremblay
6a75341ec3 Don't bind broadcast address for Windows platform
Signed-off-by: Christian Tremblay <christian.tremblay@servisys.com>
2015-10-17 11:04:26 -04:00
Joel Bender
b1ed353950 fix the _barf class to eat any __init__() parameters 2015-09-29 19:50:18 -04:00
Joel Bender
baa28cc8c0 merging in from stage to continue 2015-09-29 19:39:27 -04:00
Joel Bender
5e9f5ea693 a little more debugging, starting on the next layer 2015-09-28 20:51:31 -04:00
Joel Bender
3c3ad2fe7f raise the new InvalidTag exception in the decode() functions of the primitive data types 2015-09-25 22:25:47 -04:00
Joel Bender
a344b188c2 first add the classes to the errors module 2015-09-21 22:42:48 -04:00
Joel Bender
4c45c8d70a rather than installing the task, ask the task to install itself 2015-09-17 09:49:06 -04:00
Joel Bender
7ad5c34e20 socket.inet_ntoa() does not like bytearray's 2015-09-16 15:18:00 -04:00
Joel Bender
4ebcbd8c79 add default support for I-Am and use decorators for debugging 2015-09-16 14:44:53 -04:00
Joel Bender
da236c0486 add get_services_supported() function 2015-09-15 00:35:51 -04:00
Joel Bender
e4a89fa574 add the 'writeGroup' services supported enumeration 2015-09-14 23:39:57 -04:00
Joel Bender
305bf298b7 remove the registration of AuthenticateRequest, AuthenticateACK, and RequestKeyRequest (but leave the definitions, just in case), add the 'writeGroup' services supported enumeration, expand the service choice enumerations rather than leaving them to be expanded on demand 2015-09-14 23:38:17 -04:00
Joel Bender
46b9b1e1ab console had to convert strings to bytes to go in the data portion of a PDU 2015-09-14 16:45:54 -04:00
Joel Bender
866222ed30 remove comments from bvllservice (use noBroadcast=True) 2015-09-14 16:44:53 -04:00
Christian Tremblay
584c639b5e Commented lines that were creating binding error when trying to start app using address including mask ex. (Address('192.168.1.2/24'))
Signed-off-by: Christian Tremblay <christian.tremblay@servisys.com>
2015-09-12 17:22:41 -04:00
Joel Bender
dec01bcdab more error checking - see issue #57 2015-09-07 22:08:56 -04:00
Joel Bender
ccd7558476 slightly more restrictive month test, disallow '00' 2015-09-07 21:58:38 -04:00
Joel Bender
72fdddaf33 double check day-of-week value, even though it shouldn't match 2015-09-07 21:55:21 -04:00
Joel Bender
1d9ea1bc73 allow explicit 255 for day 2015-09-07 21:26:07 -04:00
Joel Bender
0b94ac7d80 allow explicit 255 for month 2015-09-07 21:23:27 -04:00
Joel Bender
f8a9ee5bd6 check for a valid year, raise ValueError for invalid days and months 2015-09-07 21:20:10 -04:00
Joel Bender
41a66ad92d concluding merge of issue-48 changes 2015-09-06 00:54:28 -04:00
Joel Bender
0a40541576 manually merge in the appropriate differences between issue-38 and issue-48 2015-09-06 00:46:59 -04:00
Joel Bender
a6e035d5ee wandering sys.stderr.write commented out 2015-09-06 00:12:01 -04:00
Joel Bender
b5d2b56191 make the str() of a CharacterString more closely match an OctetString because the strValue is an octet string 2015-09-05 23:56:56 -04:00
Joel Bender
b468f724b8 manually merge in fixes already in stage 2015-09-05 23:24:33 -04:00
Joel Bender
f0919d27b7 wandering sys.stderr.write commented out 2015-09-05 22:50:21 -04:00
Joel Bender
5eb4f820be it seems like I ripped the bytearray stuff out of py25 once already 2015-09-05 22:27:41 -04:00
Joel Bender
d0249dd799 bring issue up-to-date with the stage 2015-09-05 18:07:01 -04:00
Joel Bender
af7e2e34a4 date class rolled in 2015-09-05 18:02:17 -04:00
Joel Bender
a4f07bac9b manually merge in Date class changes from #48 2015-09-01 11:18:05 -04:00
Joel Bender
1881dcfdbc merge issue-48 branch for discussion 2015-08-31 22:35:49 -04:00
Christian Tremblay, ing
4a2770c5d6 Tried to add a lot of flexibility to the Date object.
Regex now recognize a lot of different formats
Deal with errors when trying to find day of week
test_date.py covers a lot of different formats but can be improved.

Signed-off-by: Christian Tremblay, ing. <christian.tremblay@servisys.com>
2015-08-31 22:06:44 -04:00
Christian Tremblay, ing
736187580b Modifications to Date object to handle multiple string format
Signed-off-by: Christian Tremblay, ing. <christian.tremblay@servisys.com>
2015-08-29 21:29:18 -04:00
Joel Bender
350333fb89 whip through the __mro__ looking for enumerations, polish the __str__ 2015-08-25 10:32:26 -04:00
Joel Bender
0b6544f206 adjusted encoding, it relies on tagLVT being zero and tagData being b'' for opening and closing tags 2015-08-24 23:33:15 -04:00
Christian Tremblay, ing
852b1833dc Work started for date object parsing using regex
Signed-off-by: Christian Tremblay, ing. <christian.tremblay@servisys.com>
2015-08-24 23:14:25 -04:00
Joel Bender
d358a6246d moved the isinstance check 2015-08-24 22:54:50 -04:00