amilajack / erb-serialport-example

An example of using electron-react-boilerplate with serialport
MIT License
14 stars 6 forks source link

I don't really understand what this does? #41

Open leeroywking opened 2 years ago

leeroywking commented 2 years ago

Summary

I came here looking for an example of how to interact with serial ports in ERB and it looks like you have just imported the module to the main.ts and created a static connection but that doesn't show up on the react side anywhere so this doesn't really help with understanding how to use serialport with ERB since its really not touching the Electron nor the react side.

I'm working on getting something wired up that will allow the front end to update and get information from the serial port module. I'm making this issue so that in a couple weeks when you shame me for not asking a useful question I have a reason to clean up my prototype code and share it in a pull request

ChenFromNB commented 1 year ago

@leeroywking I have pulled the project and do not know how to ipcRender send and receive message with ipcMain, do you resolved the problem?