| 1864 | // Process user command over telnet or web socket |
| 1865 | |
| 1866 | void 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 | |