buglabs/bugswarm-connector — Issue #27: Hot-plugging modules with a connected BUG
Author: barberdt
Created: 2011-11-08 18:36:20+00:00
State: open

Rootfs: 3.0 latest build
Connector: Used the 'update_connector.sh' script

After starting knapsack on a BUG with no modules attached, the connector successfully connects to the swarm it is a member of and produces this message: https://gist.github.com/156fa7aa56933ab22240

Following that initial message, the 'bugswarm-devicestats' is produced on an interval.

After plugging in the GPS module, the felix log on the BUG reads https://gist.github.com/01757587130bce9b0987 and this string of messages https://gist.github.com/f10ced3d6c6e33a4ca66 is seen in the swarm (notice in the log that everything it doubled since the BUG is a member of two swarms. for this issue, when I say 'the swarm', I am simply referring to one of those swarms).

Issue 1: The capabilities message is sent 5 times to the same swarm when plugging in only one module. I would expect it only to be sent once.
Issue 2: The modules message that is sent is empty. I would expect this to contain the GPS module.

After removing the GPS module, an empty 'modules' message is sent to the swarm. This is what I would expect.