6 years, 5 months ago.

Connected Lights Failing to Compile

Hello,

I am a beginner to MBED and am trying to connect my K64F to the internet to then eventually controlling the outputs of the board from a phone app. I have attempted to follow the Connected Lights example as I would then be able to adapt the code for my own application. Unfortunately, when I got to the stage of compiling the program in 'Setting up a connection' I received an error code regarding a line in the 'simple_mbed_client' script. I have attached a screenshot, and a snippet of the code.

error code

bool hasPendingValue = false;

/media/uploads/olliem97/compile_error.jpg

I would be very grateful for any advice/help that could be provided.

2 Answers

6 years, 5 months ago.

Init of hasPendingValue as part of the declaration is not allowed. You must assign the value in the constructor code of the class.

6 years, 5 months ago.

Right click on your project name and choose 'Update...' to solve this.

Fix was there, but was not deployed to connected-lights...