Freematics ONE+ traccar Edition

Inquiry and support for Freematics products
Post Reply
Zenyte
Posts: 1
Joined: Tue Apr 06, 2021 7:52 pm

Freematics ONE+ traccar Edition

Post by Zenyte »

@stanleyhuangyc -- EDIT:

I think i found the issue, The error: expression cannot be used as a function
if (net.code() == 200) {
must be an Bug in the new Firmware because if i use the repository from libots https://github.com/libots/freematics with an OLD version of freematics Firmware_V5 it compiles and runs with wifi and connect perfect to my own instance of traccar.

/EDIT

Hi, first of all i´m absolutly new to Arduino and my native language is not english so i will try to describe my problem.
I just bought and got my new Freematics ONE+ Traccar Edition (thank you for the fast shipping)

For testing and because my Simcard is on shipping i tried to connect the Freematics ONE+ to my PC and to my Home WLAN to get Internet connection.

But everytime when i try to change in "Freematics Builder V.1.1.3 / CONFIG" the Connection to WLAN the Compiling failed with ERROR.
If i compile it with the defaults (SIMcard 4G) with firmwareV5 / telelogger / telelogger.ino it compiles without any error.

Does anyone know how to fix this issue? Or do you need more informations?

greetings from germany.
Zenyte

sometimes it is this Error:

Code: Select all

Build Target: ESP32 (MCU: esp32 @ 240Mhz)
Library path: C:\Freematics-master/libraries/FreematicsPlus
Library path: hardware/arduino/esp32/libraries/WiFi/src
Library path: hardware/arduino/esp32/libraries/SPI/src
Library path: C:\Freematics-master/libraries/httpd
Library path: C:\Freematics-master/libraries/FreematicsOLED
Library path: hardware/arduino/esp32/libraries/Wire/src
Library path: hardware/arduino/esp32/libraries/FS/src
Library path: hardware/arduino/esp32/libraries/SD/src
Library path: hardware/arduino/esp32/libraries/SPIFFS/src
Library path: hardware/arduino/esp32/libraries/ESPmDNS/src
Referenced libraries: [FreematicsPlus] [WiFi] [SPI] [httpd] [FreematicsOLED] [Wire] [FS] [SD] [SPIFFS] [ESPmDNS]

[Sketch]
Compiling telelogger.ino.cpp...
Compiling dataserver.cpp...
Compiling teleclient.cpp...
C:\Freematics-master\firmware_v5\telelogger\teleclient.cpp: In member function 'virtual bool TeleClientHTTP::transmit(const char*, unsigned int)':
C:\Freematics-master\firmware_v5\telelogger\teleclient.cpp:393:16: error: expression cannot be used as a function
   if (net.code() == 200) {
                ^
C:\Freematics-master\firmware_v5\telelogger\teleclient.cpp: In member function 'virtual bool TeleClientHTTP::transmit(const char*, unsigned int)':
C:\Freematics-master\firmware_v5\telelogger\teleclient.cpp:393:16: error: expression cannot be used as a function
   if (net.code() == 200) {
                ^
Error compiling source code.
and sometimes after the second try it is this error:

Code: Select all

Build Target: ESP32 (MCU: esp32 @ 240Mhz)
Library path: C:\Freematics-master/libraries/FreematicsPlus
Library path: hardware/arduino/esp32/libraries/WiFi/src
Library path: hardware/arduino/esp32/libraries/SPI/src
Library path: C:\Freematics-master/libraries/httpd
Library path: C:\Freematics-master/libraries/FreematicsOLED
Library path: hardware/arduino/esp32/libraries/Wire/src
Library path: hardware/arduino/esp32/libraries/FS/src
Library path: hardware/arduino/esp32/libraries/SD/src
Library path: hardware/arduino/esp32/libraries/SPIFFS/src
Library path: hardware/arduino/esp32/libraries/ESPmDNS/src
Referenced libraries: [FreematicsPlus] [WiFi] [SPI] [httpd] [FreematicsOLED] [Wire] [FS] [SD] [SPIFFS] [ESPmDNS]

[Sketch]
Compiling telelogger.ino.cpp...
Compiling dataserver.cpp...
Compiling teleclient.cpp...
Error compiling source code.
stanley
Site Admin
Posts: 1017
Joined: Sat Mar 01, 2014 3:15 am

Re: Freematics ONE+ traccar Edition

Post by stanley »

Fixed.
Post Reply