How to read from Serial port in a webpage

后端 未结 4 831
轮回少年
轮回少年 2020-12-18 06:05

I want to design a webform that user should fill some fields. The value of one field should be read from Serial port (COM1) of client computer which a special hardware is co

4条回答
  •  伪装坚强ぢ
    2020-12-18 06:31

    Java might very well be your best choice for maintaining cross-browser and cross-platform compatibility. A quick search brought up these pages that you may find useful:

    • Java Communications API
    • Java Serial Programming Wikibook

    The server-side choice doesn't matter at all. Once the client reads the data, it's the same as sending any other data to a server-side script.

提交回复
热议问题