My two Photons arrived! I have to run the Local Cloud at work, since our firewall refuses to open up the CoAP port. My Core has connected to the local cloud since I set it up in 12/2014. However, setting up and connecting a Photon yields this message from the server:
Handshake failed: plaintext was the wrong size: 214
Handshake.js (in \spark-server\js\node_modules\spark-protocol\lib) I see that the decrypted ‘plaintext’ is expected to contain only a Nonce and CoreID - 52 bytes. It appears that these two elements are in there, with a lot of baggage tacked onto the end. Commenting out the length check allows the connection to succeed.
Did I miss an update? ‘Handshake.js’ doesn’t appear to be part of the spark-server repo.
(Comment - I see this is being discussed here: on GitHub )