Getting there! A quick upgrade to Xcode 7 beta6 fixed this issue. We now have data transfer from Watch Accelerometer to CMSensorRecorder to Watch app to iPhone to Kinesis -- yes data is flowing, mostly resiliently too; with intermittent focus, connectivity, etc. Here is the code.
And some screen dumps (explained below):
The Watch screen dump is pretty much as before. You will see the Cognito integration (using Amazon as an identity provider). The first 4 lines are the identity details. The next 4 lines are information regarding the Kinesis storage, the STS token expire time, the amount of local storage consumed, how many flushes to Kinesis have occurred, and when.
Of course the current code still relies on these transfer operations being in focus, an ongoing area of research as to how to make this a background operation on both the Watch and on the iPhone. But still, real data is finally in Kinesis.
TODO: build an auto-refreshing STS token, as this appears to be a known problem.
Next up, write an AWS Lambda function to read from Kinesis, parse the records and then put them into DynamoDB. Once that is there, a visualization example both on iOS and on a Server-less web service...
No comments:
Post a Comment