electron app nodejs Serial port -- 2

Zaprto Objavljeno pred 1 letom Plačilo ob prevzemu
Zaprto Plačilo ob prevzemu

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()

}

});

Node.js JavaScript

ID projekta: #35379065

Več o projektu

10 predlogov Oddaljen projekt Aktiven pred 1 letom

10 freelancerjev ponuja v povprečju za €26 na tem delu

perfomancedev

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 Več

€30 EUR v 1 dnevu
(8 ocen)
5.1
davisclaimer

✅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 Več

€22.2 EUR v 1 dnevu
(9 ocen)
3.9
Ktechz

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.

€50 EUR v 3 dneh
(3 ocen)
3.9
marinafokina9696

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 Več

€20 EUR v 7 dneh
(7 ocen)
3.1
ivanlozovyi

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 Več

€40 EUR v 1 dnevu
(4 ocen)
2.6
ewayscraper

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 Več

€19 EUR v 7 dneh
(3 ocen)
2.7
Work12345x

I can do this for you. Please view my past submitted work in my portfolio's Portfolio Items section.

€19.01 EUR v 1 dnevu
(6 ocen)
2.5
taimoorkhan311

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 Več

€19 EUR v 7 dneh
(0 ocen)
0.0