Mr-Markus / ZigbeeNet

A .NET Standard library for working with ZigBee
Eclipse Public License 1.0
131 stars 47 forks source link

Refactor ZCL autocoder to use xml instead of md #52

Closed nicolaiw closed 4 years ago

nicolaiw commented 5 years ago

https://github.com/zsmartsystems/com.zsmartsystems.zigbee/commit/5667ab1d7e2de610043bb5158e5a576f219039ec

spudwebb commented 4 years ago

any progress with this? It looks like the zcl_defintion.md is missing a lot of attributes, for example the door Lock, and Fan Control don't have any. The xml files look much more complete.

nicolaiw commented 4 years ago

Hi spudwebb,

first at all .. thank you for your PR's to this repository!

There is already a branch for #50 and #52 (branch Issue_50_and_52). Currently I do not have the time to finish this work.

regards

spudwebb commented 4 years ago

I will give it a try, but could you give me a quick state of play of this branch? What is done and what remains to be done? thanks

TheBlubb14 commented 4 years ago

Hello, everybody. In my spare time I also started to generate code from the .xml files. I wanted to get away from the StringBuilder and started to work into the C# Roslyn code generation. I have also come relatively far. If I'm not mistaken, all I need is the serialize and deserialize method. Unfortunately I haven't made any further progress in the last few weeks. Currently I have my test project under https://github.com/TheBlubb14/RoslynCodeGeneratorTest

nicolaiw commented 4 years ago

Hello guys, in the Issue_50_and_52 branch files are getting generated but it's java as far as I remember.

spudwebb commented 4 years ago

As I'm not familiar with Roslyn, and as I think it's a good idea to keep the code as close as possible as the java code, I took the Issue_50_and_52 branch as my starting point rather than the code from @TheBlubb14 (Thanks anyways!) It is a lot more work than I thought, but I'm almost done. I will issue a PR when it's ready.

Mr-Markus commented 4 years ago

Thx @spudwebb