Coopdis/easyMesh

SimpleList Error

Opened this issue · 1 comments

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp: In member function 'void easyMesh::manageConnections()':

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:65:16: warning: enumeration value 'REQUESTED' not handled in switch [-Wswitch]

     switch ( connection->nodeSyncStatus ) {

            ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:65:16: warning: enumeration value 'COMPLETE' not handled in switch [-Wswitch]

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:76:16: warning: enumeration value 'REQUESTED' not handled in switch [-Wswitch]

     switch ( connection->timeSyncStatus ) {

            ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:76:16: warning: enumeration value 'COMPLETE' not handled in switch [-Wswitch]

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp: In member function 'meshConnectionType* easyMesh::findConnection(espconn*)':

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:142:9: warning: unused variable 'i' [-Wunused-variable]

 int i=0;

     ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp: At global scope:

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:273:24: warning: unused parameter 'length' [-Wunused-parameter]

void ICACHE_FLASH_ATTR easyMesh::meshRecvCb(void *arg, char *data, unsigned short length) {

                    ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:377:24: warning: unused parameter 'arg' [-Wunused-parameter]

void ICACHE_FLASH_ATTR easyMesh::meshReconCb(void *arg, sint8 err) {

                    ^

In file included from C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:18:0:

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\easyMesh.h: In instantiation of 'T* SimpleList::erase(SimpleList::iterator) [with T = meshConnectionType; SimpleList::iterator = meshConnectionType*]':

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:44:37: required from here

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\easyMesh.h:69:8: error: no matching function for call to 'SimpleList::SimpleList(const SimpleList&)'

struct meshConnectionType {

    ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\easyMesh.h:69:8: note: candidates are:

In file included from C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:11:0:

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/SimpleList.h:39:5: note: SimpleList::SimpleList(SimpleList&) [with T = String]

 SimpleList(SimpleList& from)

 ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/SimpleList.h:39:5: note: no known conversion for argument 1 from 'const SimpleList' to 'SimpleList&'

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/SimpleList.h:22:5: note: SimpleList::SimpleList() [with T = String]

 SimpleList()

 ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/SimpleList.h:22:5: note: candidate expects 0 arguments, 1 provided

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/SimpleList.h:51:17: error: initializing argument 1 of 'SimpleList& SimpleList::operator=(SimpleList) [with T = String]'

 SimpleList& operator=(SimpleList from)

             ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/SimpleList.h:144:33: note: synthesized method 'meshConnectionType& meshConnectionType::operator=(const meshConnectionType&)' first required here

                 newArray[i] = _internalArray[i + 1];

                             ^

exit status 1
Error compiling for board NodeMCU 0.9 (ESP-12 Module).

I just found the solution.

Don't use the release folder of SimpleList lib.