MCPcopy Create free account
hub / github.com/JoaoLopesF/RemoteDebug / wsOnReceive

Method wsOnReceive

src/RemoteDebug.cpp:1866–1887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1864// Process user command over telnet or web socket
1865
1866void RemoteDebug::wsOnReceive(const char* command) { // @suppress("Unused function declaration")
1867
1868 // Process the command
1869
1870 _command = command;
1871 _lastCommand = _command; // Store the last command
1872
1873 D("cmd: %s", command);
1874
1875 // Is app commands
1876
1877 if (_command == "$app") {
1878
1879 // RemoteDebug connected, send info
1880
1881 wsSendInfo ();
1882
1883 } else { // Normal commands
1884
1885 processCommand();
1886 }
1887}
1888
1889// Send info to RemoteDebugApp
1890

Callers 1

onReceiveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected