Hi,
here the complete output of the warning,…
CellLocate.cpp: In member function 'int CellLocate::cell_locate(uint32_t)':
CellLocate.cpp:71:125: error: no matching function for call to 'spark::CellularClass::command(<unresolved overloaded function type>, CellLocate&, uint32_t&, const char [24], long unsigned int)'
if (RESP_OK == Cellular.command(CellLocate::_cbLOCATE, *this, timeout_ms, "AT+ULOC=2,2,1,%d,5000\r\n", timeout_ms/1000)) {
^
CellLocate.cpp:71:125: note: candidates are:
In file included from ../wiring/inc/spark_wiring.h:44:0,
from ./inc/application.h:36,
from CellLocate.cpp:1:
../wiring/inc/spark_wiring_cellular.h:95:16: note: template<class ... Targs> int spark::CellularClass::command(const char*, Targs ...)
inline int command(const char* format, Targs... Fargs)
^
../wiring/inc/spark_wiring_cellular.h:95:16: note: template argument deduction/substitution failed:
CellLocate.cpp:71:125: note: cannot convert '((CellLocate*)this)->CellLocate::_cbLOCATE' (type '<unresolved overloaded function type>') to type 'const char*'
if (RESP_OK == Cellular.command(CellLocate::_cbLOCATE, *this, timeout_ms, "AT+ULOC=2,2,1,%d,5000\r\n", timeout_ms/1000)) {
^
In file included from ../wiring/inc/spark_wiring.h:44:0,
from ./inc/application.h:36,
from CellLocate.cpp:1:
../wiring/inc/spark_wiring_cellular.h:101:16: note: template<class ... Targs> int spark::CellularClass::command(system_tick_t, const char*, Targs ...)
inline int command(system_tick_t timeout_ms, const char* format, Targs... Fargs)
^
../wiring/inc/spark_wiring_cellular.h:101:16: note: template argument deduction/substitution failed:
CellLocate.cpp:71:125: note: cannot convert '((CellLocate*)this)->CellLocate::_cbLOCATE' (type '<unresolved overloaded function type>') to type 'system_tick_t {aka long unsigned int}'
if (RESP_OK == Cellular.command(CellLocate::_cbLOCATE, *this, timeout_ms, "AT+ULOC=2,2,1,%d,5000\r\n", timeout_ms/1000)) {
^
In file included from ../wiring/inc/spark_wiring.h:44:0,
from ./inc/application.h:36,
from CellLocate.cpp:1:
../wiring/inc/spark_wiring_cellular.h:107:16: note: template<class T, class ... Targs> int spark::CellularClass::command(int (*)(int, const char*, int, T*), T*, const char*, Targs ...)
inline int command(int (*cb)(int type, const char* buf, int len, T* param),
^
../wiring/inc/spark_wiring_cellular.h:107:16: note: template argument deduction/substitution failed:
CellLocate.cpp:71:125: note: mismatched types 'int (*)(int, const char*, int, T*)' and 'int (CellLocate::*)(int, const char*, int, CellLocate*)'
if (RESP_OK == Cellular.command(CellLocate::_cbLOCATE, *this, timeout_ms, "AT+ULOC=2,2,1,%d,5000\r\n", timeout_ms/1000)) {
^
CellLocate.cpp:71:125: note: could not resolve address from overloaded function '((CellLocate*)this)->CellLocate::_cbLOCATE'
In file included from ../wiring/inc/spark_wiring.h:44:0,
from ./inc/application.h:36,
from CellLocate.cpp:1:
../wiring/inc/spark_wiring_cellular.h:114:16: note: template<class T, class ... Targs> int spark::CellularClass::command(int (*)(int, const char*, int, T*), T*, system_tick_t, const char*, Targs ...)
inline int command(int (*cb)(int type, const char* buf, int len, T* param),
^
../wiring/inc/spark_wiring_cellular.h:114:16: note: template argument deduction/substitution failed:
CellLocate.cpp:71:125: note: mismatched types 'int (*)(int, const char*, int, T*)' and 'int (CellLocate::*)(int, const char*, int, CellLocate*)'
if (RESP_OK == Cellular.command(CellLocate::_cbLOCATE, *this, timeout_ms, "AT+ULOC=2,2,1,%d,5000\r\n", timeout_ms/1000)) {
^
CellLocate.cpp:71:125: note: could not resolve address from overloaded function '((CellLocate*)this)->CellLocate::_cbLOCATE'
CellLocate.cpp: In member function 'bool CellLocate::get_response()':
CellLocate.cpp:99:58: error: no matching function for call to 'spark::CellularClass::command(<unresolved overloaded function type>, CellLocate&, int, const char [1])'
Cellular.command(CellLocate::_cbLOCATE, *this, 1000, "");
^
CellLocate.cpp:99:58: note: candidates are:
In file included from ../wiring/inc/spark_wiring.h:44:0,
from ./inc/application.h:36,
from CellLocate.cpp:1:
../wiring/inc/spark_wiring_cellular.h:95:16: note: template<class ... Targs> int spark::CellularClass::command(const char*, Targs ...)
inline int command(const char* format, Targs... Fargs)
^
../wiring/inc/spark_wiring_cellular.h:95:16: note: template argument deduction/substitution failed:
CellLocate.cpp:99:58: note: cannot convert '((CellLocate*)this)->CellLocate::_cbLOCATE' (type '<unresolved overloaded function type>') to type 'const char*'
Cellular.command(CellLocate::_cbLOCATE, *this, 1000, "");
^
In file included from ../wiring/inc/spark_wiring.h:44:0,
from ./inc/application.h:36,
from CellLocate.cpp:1:
../wiring/inc/spark_wiring_cellular.h:101:16: note: template<class ... Targs> int spark::CellularClass::command(system_tick_t, const char*, Targs ...)
inline int command(system_tick_t timeout_ms, const char* format, Targs... Fargs)
^
../wiring/inc/spark_wiring_cellular.h:101:16: note: template argument deduction/substitution failed:
CellLocate.cpp:99:58: note: cannot convert '((CellLocate*)this)->CellLocate::_cbLOCATE' (type '<unresolved overloaded function type>') to type 'system_tick_t {aka long unsigned int}'
Cellular.command(CellLocate::_cbLOCATE, *this, 1000, "");
^
In file included from ../wiring/inc/spark_wiring.h:44:0,
from ./inc/application.h:36,
from CellLocate.cpp:1:
../wiring/inc/spark_wiring_cellular.h:107:16: note: template<class T, class ... Targs> int spark::CellularClass::command(int (*)(int, const char*, int, T*), T*, const char*, Targs ...)
inline int command(int (*cb)(int type, const char* buf, int len, T* param),
^
../wiring/inc/spark_wiring_cellular.h:107:16: note: template argument deduction/substitution failed:
CellLocate.cpp:99:58: note: mismatched types 'int (*)(int, const char*, int, T*)' and 'int (CellLocate::*)(int, const char*, int, CellLocate*)'
Cellular.command(CellLocate::_cbLOCATE, *this, 1000, "");
^
CellLocate.cpp:99:58: note: could not resolve address from overloaded function '((CellLocate*)this)->CellLocate::_cbLOCATE'
In file included from ../wiring/inc/spark_wiring.h:44:0,
from ./inc/application.h:36,
from CellLocate.cpp:1:
../wiring/inc/spark_wiring_cellular.h:114:16: note: template<class T, class ... Targs> int spark::CellularClass::command(int (*)(int, const char*, int, T*), T*, system_tick_t, const char*, Targs ...)
inline int command(int (*cb)(int type, const char* buf, int len, T* param),
^
../wiring/inc/spark_wiring_cellular.h:114:16: note: template argument deduction/substitution failed:
CellLocate.cpp:99:58: note: mismatched types 'int (*)(int, const char*, int, T*)' and 'int (CellLocate::*)(int, const char*, int, CellLocate*)'
Cellular.command(CellLocate::_cbLOCATE, *this, 1000, "");
^
CellLocate.cpp:99:58: note: could not resolve address from overloaded function '((CellLocate*)this)->CellLocate::_cbLOCATE'
make[1]: *** [../build/target/user/platform-10CellLocate.o] Error 1
make: *** [user] Error 2
The sourcecode is on github so everyone can try to compile it using particle cli or particle dev.
thanks