Hello all,

I'm testing now the 1.2.0 RCI. I was capable to install and compile this 
release 1.2-rc with the Phil Coval patch 
("https://gerrit.iotivity.org/gerrit/#/c/11119/";) and sign up with the 
github account .

/ics at 
ics-gdp-host:~/Documents/iotivity-1.2.0-RC1-Patch/out/linux/x86_64/release/cloud/samples/client$
 
./aircon_controlee 192.168.81.168:5683 github f76ef8fdfde2e437caa1
Auth response received code: 4
     accesstoken:    1a82402be51f21a2dfca454bdb43179bb1b7ab5b
     certificate:    (null)
     expiresin:    -1
     redirecturi:    coap+tcp://127.0.0.1:5683
     refreshtoken:    (null)
     sid:    2a6085d1-815d-4277-baba-4e4e4df91308
     tokentype:    bearer
     uid:    035dcc68-d633-45cf-b7e3-3098af8b89a7
Auth response received code: 4
     expiresin:    -1
Registering resources to platform...
Publishing resources to cloud  result: 0 Waiting Publish default 
resource response from cloud
  result: 0 Waiting Publish user resource response from cloud
Publish resource response received, code: 4
PUT 1/0 to turn on/off air conditioner for observe testing, q to terminate
Publish resource response received, code: 4/



*However, *when i try sign in and publish the resource the client 
returns "Auth response received code: 46" and the interface server an 
"UNAUTHORIZED, authentication required first"

*Client*:
/ics at 
ics-gdp-host:~/Documents/iotivity-1.2.0-RC1-Patch/out/linux/x86_64/release/cloud/samples/client$
 
./aircon_controlee 192.168.81.168:5683 
035dcc68-d633-45cf-b7e3-3098af8b89a7 
1a82402be51f21a2dfca454bdb43179bb1b7ab5b 1
Auth response received code: 46
Registering resources to platform...
Publishing resources to cloud  result: 0 Waiting Publish default 
resource response from cloud
  result: 0 Waiting Publish user resource response from cloud
Publish resource response received, code: 46
PUT 1/0 to turn on/off air conditioner for observe testing, q to terminate
Publish resource response received, code: 46/
/
*Interface:*
//2016-09-06 07:02:19:243 [V] 0000000f-fb117949cae682e4-ee07a702 
Connected, Address: /192.168.81.157:42146//
//2016-09-06 07:02:19:252 [V] 0000000f-fb117949cae682e4-ee07a702 
43c0bb68ea6ff4eb PUT /oic/ping SZ:6 P:?bin?//
//2016-09-06 07:02:19:253 [V] 0000000f-fb117949cae682e4-ee07a702 
43c0bb68ea6ff4eb 5.00 Internal Server Error//
//2016-09-06 07:02:19:259 [V] 0000000f-fb117949cae682e4-ee07a702 
INTERNAL_SERVER_ERROR, Unable to find device//
//2016-09-06 07:02:19:259 [V] 0000000f-fb117949cae682e4-ee07a702 
65cb1d5827ec2aa1 GET /oic/ping//
//2016-09-06 07:02:19:260 [V] 0000000f-fb117949cae682e4-ee07a702 
65cb1d5827ec2aa1 5.00 Internal Server Error//
//2016-09-06 07:02:19:262 [V] 0000000f-fb117949cae682e4-ee07a702 
INTERNAL_SERVER_ERROR, Unable to find device//
//2016-09-06 07:02:19:263 [V] 0000000f-fb117949cae682e4-ee07a702 
00cfae87ee380f47 POST /oic/rd/?rt=oic.wk.rdpub SZ:184 
P:?bdix$364705b0-7030-41a1-8df3-810ec9d46126bltQ?elinks??dhreff/oic/dbrt?hoic.wk.dtoic.d.airconditi//
//2016-09-06 07:02:19:264 [V] 0000000f-fb117949cae682e4-ee07a702 
00cfae87ee380f47 4.01 Unauthorized//
//2016-09-06 07:02:19:265 [V] 0000000f-fb117949cae682e4-ee07a702 
UNAUTHORIZED, authentication required first//
//2016-09-06 07:02:19:266 [V] 0000000f-fb117949cae682e4-ee07a702 
6c01f76ad6f7fc39 POST /oic/rd/?rt=oic.wk.rdpub SZ:195 
P:?bdix$364705b0-7030-41a1-8df3-810ec9d46126bltQ?elinks??dhrefm/sec/aircon/0brt?wx.com.samsung.da.d//
//2016-09-06 07:02:19:267 [V] 0000000f-fb117949cae682e4-ee07a702 
6c01f76ad6f7fc39 4.01 Unauthorized//
//2016-09-06 07:02:19:271 [V] 0000000f-fb117949cae682e4-ee07a702 
UNAUTHORIZED, authentication required first/


Anyone can help me to understand why I'm not capable to publish correctly?

Many thanks in advance.

*F?bio Lima*

/*Infotainment & Software*/**

/*Electronics, ITS and HMI Division */

/*fabio.barbosa at ctag.com <mailto:rocio.otero at ctag.com>*/



> Hello JK,
>
>
> I will try now the 1.2.0 RC1, check the changes and comment my advances.
>
>
> Many thanks by your reply.
>
>
> *F?bio Lima*
>
> /*Infotainment & Software*/**
>
> /*Electronics, ITS and HMI Division */
>
> /*fabio.barbosa at ctag.com <mailto:rocio.otero at ctag.com>*/
>
>
> El 01/09/2016 a las 9:13, ??? escribi?:
>>
>> Hello Fabio Lima,
>>
>> Are you able to use latest master code to test ?
>>
>> There are greate changes to 1.1.1 to 1.2.0 RC1
>>
>> Also couple of clients are added like airconditioner, group, message 
>> queue
>>
>> Best Regards
>>
>> JK
>>
>> --------- *Original Message* ---------
>>
>> *Sender* : Fabio Barbosa de Lima <fabio.barbosa at ctag.com>
>>
>> *Date* : 2016-09-01 15:56 (GMT+9)
>>
>> *Title* : [dev] Cloud Iotivity
>>
>>> Good morning,
>>>
>>> I'm starting  working with Iotivty and amazon cloud, but the 
>>> advances are a little bit blocked because i'm not able to run the 
>>> project correctly in the Qt Creator. When i build the client with 
>>> the command Scons "scons cloud WITH_TCP=yes RELEASE=yes 
>>> TARGET_TRANSPORT=IP WITH_CLOUD=yes" the application run correctly ( 
>>> i'm capable to make all steps present in Iotivity Cloud - 
>>> Programming Guide).
>>>
>>> However, when i try run the same sample present (without 
>>> modifications) in the release 1.1.1, but  compiled in the Qt 
>>> creator, when i proceed to the device sign-up using 0Auth2, the 
>>> state of the cloud_device stay in mode Waiting Response... The 
>>> request doesn't arrive to the account, resource directory and 
>>> interface server and i don't know why. Exist environment variables, 
>>> flags, or some identifier needed ? I can't figured out why  don't work.
>>>
>> This is the "state" of the application:
>>> Put auth provider name(ex: github)
>>> github
>>> Put auth code(provided by auth provider)
>>> 05a9020e526d3f64650d
>>> Host coap+tcp://52.59.163.226:5683
>>> Register account to cloud using github 05a9020e526d3f64650d
>>> OCCloudRegisterLogin return 0
>>> *Waiting response.**.*
>>
>> This is my qmake file:
>>>
>>> *TEMPLATE = app**
>>> **CONFIG += console -std=c99 c++11**
>>> **CONFIG -= app_bundle**
>>> **CONFIG -= qt**
>>> **QMAKE_CFLAGS += -std=c99 -std=c++0x -O2 -g -Wall -Wextra**
>>> **
>>> **SOURCES += cloud_connector.c \**
>>> **           sample_device.cpp**
>>> **
>>> **linux-g++:{**
>>> **
>>> **   message( "compiling using g++" )**
>>> **   LIBS+= -L/home/ics/iotivity-1.1.1/out/linux/x86_64/release -loc 
>>> -loctbstack -loc_logger -lpthread -loctbstack**
>>> **
>>> **
>>> **}**
>>> **
>>> **HEADERS += \**
>>> **    cloud_connector.h**
>>> **
>>> **INCLUDEPATH += /usr/include**
>>> **INCLUDEPATH += /home/ics/iotivity-1.1.1/resource/csdk/stack/include**
>>> **INCLUDEPATH += /home/ics/iotivity-1.1.1/out/linux/x86_64/release**
>>> **INCLUDEPATH += /home/ics/iotivity-1.1.1/resource/include**
>>> **INCLUDEPATH += /home/ics/iotivity-1.1.1/resource/c_common**
>>> **INCLUDEPATH += 
>>> /home/ics/iotivity-1.1.1/resource/c_common/ocrandom/include**
>>> **INCLUDEPATH += /home/ics/iotivity-1.1.1/csdk/logger/include**
>>> **INCLUDEPATH += /home/ics/iotivity-1.1.1/resource/oc_logger/include**
>>> **INCLUDEPATH += 
>>> /home/ics/iotivity-1.1.1/extlibs/tinycbor/tinycbor/src**
>>> **INCLUDEPATH += 
>>> /home/ics/iotivity-1.1.1/resource/c_common/oic_malloc/include**
>>> **INCLUDEPATH += 
>>> /home/ics/iotivity-1.1.1/resource/c_common/oic_string/include**
>>> **INCLUDEPATH += /home/ics/iotivity-1.1.1/resource/csdk/logger/include*
>>> INCLUDEPATH +=/home/ics/iotivity-master/resource/csdk/logger/include
>>>
>>> -
>>>
>>> Anyone can help me  or give some suggestions for what are happens 
>>> here? Probably i'm doing something wrong because i can't understand 
>>> why, when i compile with the Sconscript (inclusive optimized code) 
>>> inside the iotivity directory, i'm capable with the same execute 
>>> commands make all the funcionalities and when compiled by any  ide 
>>> (QT creator or Eclpise) the application stay in mode "waiting 
>>> response..".
>>>
>>> Grateful by your attention,
>>>
>>> Best Regards,
>>>
>>> *F?bio Lima*
>>>
>>> /*Infotainment & Software*/**
>>>
>>> /*Electronics, ITS and HMI Division */
>>>
>>> /*fabio.barbosa at ctag.com <mailto:rocio.otero at ctag.com>*/
>>>
>>>
>>>
>>>
>>
>> _______________________________________________
>> iotivity-dev mailing list
>> iotivity-dev at lists.iotivity.org
>> https://lists.iotivity.org/mailman/listinfo/iotivity-dev
>>
>> *|* Jee Hyeok, Kim *|* IoT Solution Lab, SW Center *|* Mobile) 
>> +82-10-9168-3641 *|*
>>
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160906/8162328d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 13402 bytes
Desc: not available
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160906/8162328d/attachment.gif>

Reply via email to