screens/Terminal.js
//  Change state and disconnect client MQTT
Change state and disconnect client MQTT
Change state and disconnect client MQTT
function disconnectServer(){
  setEdit(true)
  setSelect(true)
  if(client){
    client.end()
    setConnectButton(false)
    setDisconnectButton(true)
    setTextData([])
  }
}
function disconnectServer ( ) { setEdit ( true ) setSelect ( true ) if ( client ) { client . end ( ) setConnectButton ( false ) setDisconnectButton ( true ) setTextData ( [ ] ) } }
Change state and disconnect client MQTT
Change state and disconnect client MQTT