Electron Cellular Locate Test App

Hi guys,

sorry to disturb your discussion with a complete different question rgd. the cellular location feature.
I tried to transform the example provided by @BDub to a own class.
Unfortunately my c++ knowledge is too far away to get usable results :frowning:

Anyway, I put the code into a git rep, currently it fails at the callback function. I’ve no idea how I can pass the object to it,…

CellLocate.cpp: In member function 'int CellLocate::cell_locate(uint32_t)':
CellLocate.cpp:72:75: error: cannot create pointer to reference member 'CellLocate::_self'
	   if (RESP_OK == Cellular.command(CellLocate::_cbLOCATE, &CellLocate::_self, timeout_ms, "AT+ULOC=2,2,1,%d,5000\r\n", timeout_ms/1000)) {
																		   ^
CellLocate.cpp:71:17: warning: unused variable '_self' [-Wunused-variable]
	 CellLocate *_self;
				 ^
CellLocate.cpp: In member function 'bool CellLocate::get_response()':
CellLocate.cpp:100:56: error: cannot create pointer to reference member 'CellLocate::_self'
   Cellular.command(CellLocate::_cbLOCATE, &CellLocate::_self, 1000, "");
														^
make[1]: *** [../build/target/user/platform-10CellLocate.o] Error 1
make: *** [user] Error 2

kind regards