Skip to content

Weekly schedule working#28

Open
mRy0 wants to merge 3 commits intoela-compil:masterfrom
mRy0:weekly_schedule_working
Open

Weekly schedule working#28
mRy0 wants to merge 3 commits intoela-compil:masterfrom
mRy0:weekly_schedule_working

Conversation

@mRy0
Copy link

@mRy0 mRy0 commented Jun 26, 2018

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
Copy link
Member

gralin commented Jun 27, 2018

@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()}";
Copy link
Member

@gralin gralin Jun 28, 2018

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
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.

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