How to define the values for About configuration on Arduino?

asked 2014-10-07 00:45:39 -0700

congtam gravatar image

updated 2014-10-07 03:28:38 -0700

Hi everyone,

I'm trying to implement AboutServer on ARduino. I have added the about module on Arduino library which contains: ServicesCommon.cpp ServicesCommon.h PropertyStore.cpp PropertyStore.h PropertyStoreOEMProvisioning.h AppHandlers.cpp AppHandlers.h ServicesHandlers.cpp ServicesHandlers.h There is the errors in the PropertyStore.cpp because I think this file is created for linux. The errors are in the lines:

    AJSVC_PropertyStoreFieldIndices fieldIndex = 0;
for (; fieldIndex < AJSVC_PROPERTY_STORE_NUMBER_OF_KEYS; fieldIndex++) {...

It says that "Invalid conversion from int to AJSVC_PropertyStoreFieldIndices", i have tried to change fiedIndex to Int, but there is still error at AJSVC_PropertyStoreFieldIndices fieldIndex = 0;. I think that we have to define the values for AJSVC_... But I don't understand well their meaning and format. Could anybody know them?

And I follwed the ServerSample in the sample_apps folder for tcl, I initialized:

    status = PropertyStore_Init();
if (status != AJ_OK) {
    goto Exit;

status = AJServices_Init(PORT, AppObjects, ProxyObjects, deviceManufactureName, deviceProductName);
if (status != AJ_OK) {
    goto Exit;

Eclipse has the error at AJServices_Init about syntax of type of PORT although I defined it uint_16. I would like to ask that "AppObjects" here is Ojects of our application? And for "ProxyObjects" should we set NULL value because we haven't known this object? Sorry for these basic questions, I'm new in this service. Sincerely, I have no idea to fix them. Could anybody please help me? Thanks,

edit retag flag offensive close merge delete


Hi everyone, I had the mistake. I found an example of AJTC serverAbout. In fact, we don't need to define the values of AJSVC... We have to define the application name, devices configuration in our application project. Thanks anyway.

congtam ( 2014-10-08 02:51:42 -0700 )edit

Would you please post the link of the example?

fl0ck ( 2014-11-05 01:31:03 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-10 15:30:37 -0700

bspencer gravatar image

You would define these in your application code, for example in the ServerSample you will find a implementation of the array propertyStoreDefaultValues that contains all the information that you need to supply to About.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-10-07 00:45:39 -0700

Seen: 73 times

Last updated: Nov 10 '14