- Sun Dec 18, 2016 3:40 pm
- This is not meant to program an arduino, it is meant to monitor the serial output, and give it input as well. Was this review helpful? Mark as spam or abuse. Load more replies. Load more replies. Steven Carmichael Oct 1, 2019. How to force sending CRLF (n)? Launched in Chrome browser Version 77.0.3865.90 (Official Build) (64.
- Now Open the serial port and check. Enter all the details and it will show the output like this. Hence, in this way, we can read the input from Serial monitor and show it.
This plugin aims to leverage Arduino development with CLion by providing Serial Monitor Tool Window. It allows you to communicate to your Arduino device without leaving the IDE. Functionality is pretty similar to those, available in Arduino IDE through 'Serial Monitor.
Clion Platformio Serial Monitor

Clion Serial Monitor Camera



Clion Serial Monitor Software
Code: Select all
#include <SoftwareSerial.h>
SoftwareSerial bluetooth(14, 12);
int cnt = 0;
int started = 0;
int ind = 0;
const char endTag[] = 'DISCE';
void setup()
{d
bluetooth.begin(115200);
Serial.begin(115200);
}
void loop()
{
if (started 0)
{
bluetooth.print('AT+DISI?');
started = 1;
}
if (started 1 && bluetooth.available())
{
char charIn = bluetooth.read();
Serial.print(charIn);
// look for the endTag while we are processing
if (charIn endTag[ind])
{
ind++;
}
else
{
ind = 0;
}
// have we found the endTag?
if (ind 5)
{
Serial.println('*'); //line end
started = 0;
ind = 0;
}
}
}