MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / getStatus

Method getStatus

app/src/API/Handlers/ControlScriptHandler.cpp:140–148  ·  view source on GitHub ↗

* @brief Returns the running state of the control script. */

Source from the content-addressed store, hash-verified

138 * @brief Returns the running state of the control script.
139 */
140API::CommandResponse API::Handlers::ControlScriptHandler::getStatus(const QString& id,
141 const QJsonObject& params)
142{
143 Q_UNUSED(params)
144
145 QJsonObject result;
146 result[QStringLiteral("running")] = DataModel::ControlScript::instance().running();
147 return CommandResponse::makeSuccess(id, result);
148}
149
150/**
151 * @brief Compile-checks control-script source in a throwaway engine, mirroring the worker's

Callers

nothing calls this directly

Calls 1

runningMethod · 0.45

Tested by

no test coverage detected