Home > database > Read the data from serial port mysql?
Read the data from serial port mysql?
Time:09-17
Novice, there is a demand: the temperature and humidity of the zigbee board to collect data from serial port input, but how in the database?
CodePudding user response:
Novice asked a great god!
CodePudding user response:
Itself, MYSQL is a database only, unable to provide direct access to the serial communication interface, the need to write their own procedures to monitor incoming COM from the data, and then inserted into the database,
CodePudding user response:
You should look at the example of the corresponding, mysql API, the temperature and humidity data collected from the serial port input, the need to use C language to the corresponding data into the database,
CodePudding user response:
I'm dizzy, Opening report to decide, but beginners lost, special method is also so much, not sure what the Now there are two problems: 1, made of their host made a MySQL server and to receive from the serial port to send data automatically, deposited in the database, 2, the local database, how to become a network database, and then give the app interface, Before have a idea, the local server mapping a web page, page only valid data in the data, maps to the network, parse the json format provides interface for APP, as a beginner I now don't understand this method on unreliable, The great god, and to give directions, and there is no professional point? Please help, thank you!
CodePudding user response:
? _? Tomcat Sqlite is what this a few database what's the difference between a web server and the usual what's the difference between the server and watched the recommend a tutorial or something wrong? What's in the socket communication implementation? Novice confused,,