Error: invalid use of template-name

sketch_oct24a:5: error: invalid use of template-name ‘ThingerWifi’ without an argument list

ThingerWifi thing(“scratch_book”, “W1”, “***”);

in this simple test

#include <SPI.h>
#include <ESP8266WiFi.h>
#include <ThingerWifi.h>

ThingerWifi thing("username", "device", "password");

void setup() {
  thing.add_wifi("wifi_ssid", "wifi_password");
}

void loop() {
  thing.handle();
}

Hi,

I have updated right now the Arduino libraries to support this definition of ThingerWifi (you should be able to update them in the following hours). Meanwhile, you can define the ThingerWifi as ThingerWifi<>, but this will change back in 2.5.2 libraries.

Thank you!
What do I need to do in order for this example to work correctly?

Just change ThingerWifi with ThingerWifi<>, like in the following example:

#include <SPI.h>
#include <ESP8266WiFi.h>
#include <ThingerWifi.h>

ThingerWifi<> thing("username", "device", "password");

void setup() {
  thing.add_wifi("wifi_ssid", "wifi_password");
}

void loop() {
  thing.handle();
}

:slight_smile::slight_smile::slight_smile::slight_smile::slight_smile:

New error

Arduino: 1.6.12 (Windows 7), Плата:"WeMos D1(Retired), 80 MHz, 921600, 4M (3M SPIFFS)"
In file included from C:\Users\17D3~1\AppData\Local\Temp\arduino_modified_sketch_336025\ArduinoWifi.ino:3:0:

C:\Users\Денис\Documents\Arduino\libraries\thinger.io\src/ThingerWifi.h:84:21: error: ‘ThingerWifiClient<>’ is not a template
#define ThingerWifi ThingerWifiClient<>
^
C:\Users\17D3~1\AppData\Local\Temp\arduino_modified_sketch_336025\ArduinoWifi.ino:5:1: note: in expansion of macro 'ThingerWifi’
ThingerWifi<> thing(“scratch_book”, “W”, “Qwe123456789”);

exit status 1

Now you have the updated libraries! So you can switch back to your original example!