Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weekly schedule working #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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