executables:
{
helloWorld = ( helloComponent )
}
processes:
{
envVars:
{
LE_LOG_LEVEL = DEBUG
}
run:
{
( helloWorld )
}
}
bindings:
{
// I do not what code should I write?
}
Errors:
Description Resource Path Location Type
Legato builder: ** ERROR: Client interface 'le_adc' of component 'helloComponent' in executable 'helloWorld' is unsatisfied. It must either be declared an external (inter-app) required interface (in a "requires: api:" section in the .adef) or be bound to a server side interface (in the "bindings:" section of the .adef). helloWorld C/C++ Problem
Symbol 'EXT_ADC1' could not be resolved helloWorld.c /helloWorld/helloComponent line 12 Semantic Error
And I can read the ADC value by using the command line:
root@swi-mdm9x15:~# legato version
16.04.0_63633d9200de787b7c2a6dca03d2cff3_modified
root@swi-mdm9x15:~# cm adc read EXT_ADC1
EXT_ADC1:42899
root@swi-mdm9x15:~# cm adc read EXT_ADC2
EXT_ADC2:555
Jan 6 06:10:04 | INFO | helloWorld[3666] | Hello, world.
Jan 6 06:10:04 | helloWorld[3666]/framework T=main | le_adc_client.c le_adc_ReadValue() 556 | Sending message to server and waiting for response : 12 bytes sent
Jan 6 06:10:04 | helloWorld[3666]/helloComponent T=main | helloWorld.c _helloComponent_COMPONENT_INIT() 13 | The ADC value = 42902
This is causing the legato version did not compatible with the Legato Package version:
My Legato package version is: 16.10.1.wp85-wp75-native-i686-201702141553
and my Legato wp85 version is: 16.04.0_63633d9200de787b7c2a6dca03d2cff3_modified
When I completed the update, the issue was solved.
Now the finally version should be:
Legato Package version: 16.10.1.wp85-wp75-native-i686-201702141553
And the Legato version: 16.10.1_a6a25fbda05738774857dccb9fd76a99_modified