I tried changing it manually,
if chirp.state == CHIRP_SDK_STATE_RUNNING {
chirp.state = CHIRP_SDK_STATE_STOPPED
}
but the error reads it is a get only property.
You cannot set the state of the ChirpSDK. To stop the SDK you need to call the stop
method. Then the state will change to CHIRP_SDK_STATE_STOPPED
.