Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make device twin sample to run on ESP8266 #52

Closed
compulim opened this issue Jan 30, 2017 · 8 comments
Closed

Make device twin sample to run on ESP8266 #52

compulim opened this issue Jan 30, 2017 · 8 comments
Assignees

Comments

@compulim
Copy link

serializer/samples/devicetwin_simplesample is one good example how to use device twin (WITH_DESIRED_PROPERTY) and device method (WITH_METHOD).

But unfortunately, it currently does not work with ESP8266 (Sparkfun Thing Dev). I am not proficient in C but when I drill down I found that parson.c use sscanf but ESP8266 does not support sscanf (issue).

I really hope the device twin sample can work because it enables ESP8266 to be invoked with device method.

@anporumb
Copy link
Contributor

We suggest changing parson source code to use some of the functions we wrote in order to work around the sscanf problem. We have no time to make this change ourselves for the foreseeable future.

If you manage to get it running, we'd take a pull request on that. Thank you.

Best Regards,
Andrei Porumb

@compulim
Copy link
Author

I have forked parson and made a version of it without sscanf. It passed all parson tests.

Since it is not a bug in parson, I filed an issue (a.k.a. suggestion) to them and see if they like my commit.

@compulim
Copy link
Author

Waiting for my pull request at parson to be accepted.

@compulim
Copy link
Author

@anporumb Although device twin is still not working on ESP8266 (lack of Lock/Unlock/Lock_init), the latest parson@96150ba remove dependency to sscanf. Bringing one closer step.

@JetstreamRoySprowl
Copy link
Contributor

Twin support for Arduino is near the front of my task queue. I'll post here when it's complete.

@jantielens
Copy link
Member

Any update @JetstreamRoySprowl ? Is it still far away?
Thanks!

@JetstreamRoySprowl
Copy link
Contributor

@jantielens Real Soon Now. I've gotten it running, and just need to get it into the next release.

@JetstreamRoySprowl
Copy link
Contributor

The 1.0.44 versions of the Azure IoT libraries now have twin support. Running this version will require the latest library and devices files. Here is the sample for Huzzah, but it also fits in Thing Dev: https://github.com/Azure-Samples/iot-hub-c-huzzah-getstartedkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants