coding conventions
This commit is contained in:
@@ -90,16 +90,16 @@ async function readLoop() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close the port
|
// Sluit de poort
|
||||||
async function disconnect() {
|
async function disconnect() {
|
||||||
await reader.cancel();
|
await reader.cancel();
|
||||||
await port.close();
|
await port.close();
|
||||||
console.log("Port is closed!");
|
console.log("Port is closed!");
|
||||||
}
|
}
|
||||||
|
//plotly grafiek
|
||||||
function plotly(graph, array){
|
function plotly(graph, dataArray){
|
||||||
Plotly.newPlot(graph, [{
|
Plotly.newPlot(graph, [{
|
||||||
y: array,
|
y: dataArray,
|
||||||
mode: 'lines',
|
mode: 'lines',
|
||||||
line: {color: '#80CAF6'}
|
line: {color: '#80CAF6'}
|
||||||
}]);
|
}]);
|
||||||
|
Reference in New Issue
Block a user