ppegusii / cs677-smart-homes-IoT

Programming Assignment 1: Internet of Things and Smart Homes
GNU General Public License v2.0
2 stars 0 forks source link

API differences #3

Closed ppegusii closed 9 years ago

ppegusii commented 9 years ago

How do we plan to merge our APIs? Your RegisterParams are a bit different from mine in that you are using strings and I am using ints. I wanted to stay away from strings, especially non-constants, to avoid spelling mistakes and reduce data transmitted. Also I thought that we could store all the shared struct definitions in one place to avoid circular imports and repeated code. The gateway seems best because that's the thing that needs to know about them all. What do you think of gateway/api.go?

ameetrivedi commented 9 years ago

Agree, gateway is the best place. Will change the sensor code to adhere to gateway/api.go

Do you have a running copy of the gateway-sensor code? I will take that as the base and do incremental changes to it.

ppegusii commented 9 years ago

Just gateway. It's in gateway/.