electron app nodejs Serial port -- 2
Budget €8-30 EUR
Job Description:
I Have Dev an electron serial app witch have :
async open 3 serial port .
When serials open
1 Serial parse data to renderer js file
2 the renderer js file is link to main [login to view URL] electron window by parsing data to many function
3 I have already create a child window but i can not parse the main index console to child html page
async function listSerialPorts() {
await [login to view URL]().then((ports, err) => {
if(err) {
[login to view URL]('error').textContent = [login to view URL]
[login to view URL](err)
return
} else {
[login to view URL]('error').textContent = ''
}
//[login to view URL]('ports', ports); //später löschen
if ([login to view URL] === 0) {
[login to view URL]('error').textContent = 'No ports discovered'
[login to view URL]("No ports discovered")
}
for( let i=0;i < [login to view URL];i++) {
[login to view URL] =[login to view URL] + "<option value = "+ ports[i].path+ ">" + ports[i].path + "</option>"
[login to view URL]('comPorts').innerHTML = [login to view URL];
[login to view URL]('comPorts1').innerHTML = [login to view URL];
[login to view URL]('comPorts2').innerHTML = [login to view URL];
}
[login to view URL] = [];
})
[login to view URL] = e =>{
[login to view URL] = [login to view URL]("comPorts").value
[login to view URL] = new SerialPort({path:[login to view URL],baudRate:[login to view URL] })
[login to view URL] = [login to view URL](new ReadlineParser({ delimiter: '\r\n' }))
[login to view URL] = true
[login to view URL] = false
DataReceived()
init()
//GPS()//
}
function DataReceived()
{
let newValue ='';
[login to view URL]('data',function(data){
newValue = data;
var bar= newValue;
bar1 = parseInt(bar);
[login to view URL](newValue);
//getValue(data);
});
}
mains .js
const electron = require('electron')
const app = [login to view URL]
const BrowserWindow = [login to view URL]
const path = require('path')
const url = require('url')
let mainWindow
function createWindow() {
mainWindow = new BrowserWindow({
width: 1050,
height: 1080,
frame: true,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true,
}
})
[login to view URL]([login to view URL]({
pathname: [login to view URL](__dirname, '[login to view URL]'),
protocol: 'file:',
slashes: true
}));
let child= new BrowserWindow({parent:mainWindow})
[login to view URL]([login to view URL]({
pathname: [login to view URL](__dirname, '[login to view URL]'),
protocol: 'file:',
}));
[login to view URL]()
[login to view URL]([login to view URL]({
pathname: [login to view URL](__dirname, '[login to view URL]'),
protocol: 'file:',
slashes: true
}));
// Open the DevTools.
[login to view URL]();
[login to view URL]('closed', function() {
mainWindow = null
})
}
[login to view URL]('ready', createWindow)
[login to view URL]('window-all-closed', function() {
[login to view URL]()
})
[login to view URL]('activate', function() {
if (mainWindow === null) {
createWindow()
}
});
10 freelances font une offre moyenne de 26 € pour ce travail
Greetings! Thanks for your project posting. I read your project details and i understood all. I can help you with your project at a high level. I have rich experience in Node.js developing. My skills and experience i Plus
✅Hi, there!✅ It's small javascript project. I have read all the details and requirements of your project carefully. I am very interested in your project because ✅I'm Javascript expert✅ . I have done so many javascript Plus
Hello Dear i am full stack developer and NodeJS expert with in depth knowledge of electron framework and can help you with your three probs but your budget seems to bit low.
Hello. ✨This is Marina, a full-stack developer.✨ I have read your project description ⭐electron app nodejs Serial por⭐ seriously. I really want to participate in this work, and if I do, I feel like I can achieve amazi Plus
Hello I've read your job description and I see that you need to help project Integration and testing, maintaining. I think I am the ideal choice to meet your request, because I am a senior web developer 10+ years of e Plus
Hi, I understand your requirements. I absolutely sure that I can do it. I AM A SENIOR WEB DEVELOPER And WEB DESIGNER WITH 10+ YEARS OF EXPERIENCE. I have a great experience with WORDPRESS, WOOCOMMERCE, SHOPIFY, REACT J Plus
I can do this for you. Please view my past submitted work in my portfolio's Portfolio Items section.
Hi! I reade your requirements you need a good designer who will create aunique style,pattern and good information. your reading right proposal i wil help you in short interval of time . i will use in your logo these 5 Plus