1 To build cloud client sample, add WITH_TCP, TARGET_TRANSPORT=IP and WITH_CLOUD option to build command
3 ex) scons WITH_TCP=yes TARGET_TRANSPORT=IP WITH_CLOUD=yes
5 Cloud client runs using CoAP over TCP transport. So you should add WITH_TCP option.
7 Once you get sample which file name is 'aircon_controlee' and 'aircon_controller', you need 'Auth Code' to register resources on cloud with account scenario.
9 Cloud stack has sample github oauth2 adaptor.
11 So you can instantly test sample using 'Auth Code'.
13 Paste below URL to your browser
15 https://github.com/login?return_to=%2Flogin%2Foauth%2Fauthorize%3Fclient_id%3Dea9c18f540323b0213d0%26redirect_uri%3Dhttp%253A%252F%252Fwww.example.com%252Foauth_callback%252F
17 And you'll see login page provided by github, and after logged in, you'll be redirectd to below site.
19 http://www.example.com/oauth_callback/?code=bf9beb5db17ea476fa46
21 You can get 'Auth Code', value of '?code' query string.
23 The 'Auth Code' is one time token. So you need other token to run each sample.