Skip to content

Weekly schedule working#28

Closed
mRy0 wants to merge 3 commits into
ela-compil:v4from
mRy0:weekly_schedule_working
Closed

Weekly schedule working#28
mRy0 wants to merge 3 commits into
ela-compil:v4from
mRy0:weekly_schedule_working

Conversation

@mRy0

@mRy0 mRy0 commented Jun 26, 2018

Copy link
Copy Markdown

I wrote some code to get the weekly schedule working.

I added two classes BacnetDailySchedule struct with decode and encode and containing a List of BacnetTimeValue.

Reading and writing is testet against different ela certified PLCs.

@gralin

gralin commented Jun 27, 2018

Copy link
Copy Markdown
Member

@mRy0 Thanks for your contribution! Would it be possible that you open a pull request against v2 branch too? But first I can review this pull so we can merge it with master.


public override string ToString()
{
return $"DaySchedule Len: {DaySchedule?.Count()}";

@gralin gralin Jun 28, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DaySchedule?.Count ?? 0




public int Decode(byte[] buffer, int offset, uint count)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code cosmetics. Please remove extra new lines you added in some places like this, max one empty line is ok. And when you see a line wrapping here, then it means it's a bit too long, please try to make it shorter.

@gralin gralin changed the base branch from master to v4 July 2, 2026 09:32
@gralin

gralin commented Jul 2, 2026

Copy link
Copy Markdown
Member

Retargeting to the v4 integration branch and keeping this open.

Rather than merge it now, this will be incorporated when we synchronize the repository with the IPECON fork (https://github.com/IPECON/BACnet), which already contains similar Schedule support: BacnetDailySchedule/BacnetTimeValue plus BacnetCalendarEntry and BacnetSpecialEvent (exception schedules).

During that sync we'll reconcile the two approaches: IPECON surfaces the seven daily schedules as separate values, whereas this PR packages Weekly_Schedule as a single BacnetDailySchedule[7] array (with the TagFromType/encode wiring). We'll make sure the 7-day whole-property read/write is covered — and port this array handling if IPECON's per-day decode doesn't capture it.

Thanks @mRy0 for the original work. Tracked together with #26 / #131.

@gralin

gralin commented Jul 6, 2026

Copy link
Copy Markdown
Member

@mRy0 schedules have been added in 4.0.0-beta.3, any feedback appreciated 🙇

@gralin gralin closed this Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants