Getting start Blynk with Energia 1.6.10E18 + TI CC3200 Launchpad

Hi,

I just found out about Blynk and want to try it with my TI CC3200 using Energia, so I downloaded everything I needed according to the tutorial on this


I managed to include blink library, first I try to run the example included throught the Energia menu, File -> Examples -> Blynk -> Board with Wifi then TI CC3200-LaunchXL, I try to compile it and it always failed,

Im using Win7 for the energia.

This is what come out on the error message

=====================================================================
:0:15: warning: ISO C99 requires whitespace after the macro name [enabled by default]
In file included from C:\Users\Blizz\Documents\Energia\libraries\Blynk/Adapters/BlynkWiFiCommon.h:18:0,

             from C:\Users\Blizz\Documents\Energia\libraries\Blynk/BlynkSimpleEnergiaWiFi.h:15,

             from C:\Users\Blizz\Documents\Energia\libraries\Blynk/BlynkSimpleTI_CC3200_LaunchXL.h:24,

             from C:\Users\Blizz\Documents\Energia\libraries\Blynk\examples\Boards_WiFi\TI_CC3200_LaunchXL\TI_CC3200_LaunchXL.ino:28:

C:\Users\Blizz\Documents\Energia\libraries\Blynk/BlynkApiArduino.h:103:6: warning: #warning “analogInputToDigitalPin not defined => Named analog pins will not work” [-Wcpp]

 #warning "analogInputToDigitalPin not defined => Named analog pins will not work"

  ^

In file included from C:\Users\Blizz\Documents\Energia\libraries\Blynk/Adapters/BlynkWiFiCommon.h:19:0,

             from C:\Users\Blizz\Documents\Energia\libraries\Blynk/BlynkSimpleEnergiaWiFi.h:15,

             from C:\Users\Blizz\Documents\Energia\libraries\Blynk/BlynkSimpleTI_CC3200_LaunchXL.h:24,

             from C:\Users\Blizz\Documents\Energia\libraries\Blynk\examples\Boards_WiFi\TI_CC3200_LaunchXL\TI_CC3200_LaunchXL.ino:28:

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h: In member function ‘bool BlynkProtocol::run(bool)’:

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h:114:11: error: there are no arguments to ‘yield’ that depend on a template parameter, so a declaration of ‘yield’ must be available [-fpermissive]

 yield();

       ^

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h:114:11: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h: In member function ‘bool BlynkProtocol::processInput()’:

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h:230:23: error: there are no arguments to ‘yield’ that depend on a template parameter, so a declaration of ‘yield’ must be available [-fpermissive]

             yield();

                   ^

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h: In instantiation of ‘bool BlynkProtocol::run(bool) [with Transp = BlynkArduinoClientGen]’:

C:\Users\Blizz\Documents\Energia\libraries\Blynk\examples\Boards_WiFi\TI_CC3200_LaunchXL\TI_CC3200_LaunchXL.ino:50:13: required from here

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h:114:11: error: ‘yield’ was not declared in this scope

 yield();

       ^

exit status 1
Error compiling for board CC3200-LAUNCHXL (80MHz).

Please help, I want to use CC3200 with Blynk, was it something wrong on my imported Blynk library process, or its just something has change along the updated latest blynk library or Energia library?
Anything I need to change or do to make the CC3200 tutorial worked?

There isn’t a single Blynk library there are at least four and they can’t be loaded through the Arduino IDE.
It requires manual installation as covered in the notes.

Hi Costas,

Im try following the arduino way to install the library as mentioned in the blynk website here

I am also trying manually as usual Ardunio way in this Energia, but it still showing the same error, not working out of the box for the examples for TI cc3200 LaunchpadXL, perhaps I missed something along the way, please help enlight how to install Blynk library properly in Energia, thanks Costas,
In the zip file I see 4 folder

I extracted 4 folder inside the blynk lib file

this the the exampled code of blynx :

/**************************************************************
 * Blynk is a platform with iOS and Android apps to control
 * Arduino, Raspberry Pi and the likes over the Internet.
 * You can easily build graphic interfaces for all your
 * projects by simply dragging and dropping widgets.
 *
 *   Downloads, docs, tutorials: http://www.blynk.cc
 *   Blynk community:            http://community.blynk.cc
 *   Social networks:            http://www.fb.com/blynkapp
 *                               http://twitter.com/blynk_app
 *
 * Blynk library is licensed under MIT license
 * This example code is in public domain.
 *
 **************************************************************
 * This example shows how to use TI CC3200-LaunchXL
 * to connect your project to Blynk.
 *
 * Requires Energia IDE: http://energia.nu/download/
 *
 * Feel free to apply it to any other example. It's simple!
 *
 **************************************************************/

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <SPI.h>
#include <WiFi.h>
#include <BlynkSimpleTI_CC3200_LaunchXL.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
  // Or specify server using one of those commands:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
  //Blynk.begin(auth, ssid, pass, server_ip, port);
}

void loop()
{
  Blynk.run();
}

this is the error messages after trying to compile it, seem doesnt look seem to be library not found issue ?

<command-line>:0:15: warning: ISO C99 requires whitespace after the macro name [enabled by default]

In file included from C:\Users\Blizz\Documents\Energia\libraries\Blynk/Adapters/BlynkWiFiCommon.h:18:0,

                 from C:\Users\Blizz\Documents\Energia\libraries\Blynk/BlynkSimpleEnergiaWiFi.h:15,

                 from C:\Users\Blizz\Documents\Energia\libraries\Blynk/BlynkSimpleTI_CC3200_LaunchXL.h:24,

                 from C:\Users\Blizz\Documents\Energia\libraries\Blynk\examples\Boards_WiFi\TI_CC3200_LaunchXL\TI_CC3200_LaunchXL.ino:28:

C:\Users\Blizz\Documents\Energia\libraries\Blynk/BlynkApiArduino.h:103:6: warning: #warning "analogInputToDigitalPin not defined => Named analog pins will not work" [-Wcpp]

     #warning "analogInputToDigitalPin not defined => Named analog pins will not work"

      ^

In file included from C:\Users\Blizz\Documents\Energia\libraries\Blynk/Adapters/BlynkWiFiCommon.h:19:0,

                 from C:\Users\Blizz\Documents\Energia\libraries\Blynk/BlynkSimpleEnergiaWiFi.h:15,

                 from C:\Users\Blizz\Documents\Energia\libraries\Blynk/BlynkSimpleTI_CC3200_LaunchXL.h:24,

                 from C:\Users\Blizz\Documents\Energia\libraries\Blynk\examples\Boards_WiFi\TI_CC3200_LaunchXL\TI_CC3200_LaunchXL.ino:28:

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h: In member function 'bool BlynkProtocol<Transp>::run(bool)':

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h:114:11: error: there are no arguments to 'yield' that depend on a template parameter, so a declaration of 'yield' must be available [-fpermissive]

     yield();

           ^

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h:114:11: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h: In member function 'bool BlynkProtocol<Transp>::processInput()':

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h:230:23: error: there are no arguments to 'yield' that depend on a template parameter, so a declaration of 'yield' must be available [-fpermissive]

                 yield();

                       ^

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h: In instantiation of 'bool BlynkProtocol<Transp>::run(bool) [with Transp = BlynkArduinoClientGen<Client>]':

C:\Users\Blizz\Documents\Energia\libraries\Blynk\examples\Boards_WiFi\TI_CC3200_LaunchXL\TI_CC3200_LaunchXL.ino:50:13:   required from here

C:\Users\Blizz\Documents\Energia\libraries\Blynk/Blynk/BlynkProtocol.h:114:11: error: 'yield' was not declared in this scope

     yield();

           ^

exit status 1
Error compiling for board CC3200-LAUNCHXL (80MHz).

@blizz Arduino 1.6.10 is broken and I believe that is what Energia are using. 1.6.11 was released yesterday as a fix for the 1.6.10 problems. I don’t have any plans to use 1.6.11 and will stick with 1.6.9 for now.

Are you able to roll back to an Energia version that was using 1.6.9 to see if that fixes your problem?

Hi Costas,

Thanks for the information, I will try with lower version of Energia, but Im not quite sure which Energia version that have 1.6.9 inside, tonite I’ll try with Energia 17 and 16, see if its OK

Yes it looks like Energia doesn’t get updated very often, almost a year excluding the update in the last few days. Just try the last but one version.

Hi Costa,

Confirmed, I used Energia 17, indeed very old version about a year ago, It sucessfully out of the box compiling the Blynx WiFi CC3200 LaunchPad examples,

Thanks alot for the englightment,

2 Likes