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

Gateway gives same device ID while registering #5

Closed ameetrivedi closed 9 years ago

ameetrivedi commented 9 years ago

Gateway always returns device ID 0 while registering.

ppegusii commented 9 years ago

Is this your gateway or mine? I tried testing with your sensor and my gateway, since I think that's the only sensor or device that currently tries to register to the gateway. But the params struct sent by the sensor during registration is different than the one the gateway expects. Do you plan on importing struct definitions from gateway/api.go?

ppegusii commented 9 years ago

Hopefully this is fixed. I wasn't assigning a value to RPC reply.