Posts by Jon • 135 points
17 posts
-
0
votes2
answers408
viewsQ: Arduino serialporta with C#
I get the information passed through the serial port of my Arduino with this code: cnx.Open(); string carro = cnx.ReadLine(); textBox1.Text = carro; cnx.Close(); I was wondering if it would be…
-
0
votes2
answers548
viewsQ: How do you get value from the serial port?
With the code below I get four values (1,2,3,4) sent by the serial port of Arduous, values are not sent together or will come out 1 or 2 or 3 or 4. serialPort1.Open(); string entrada =…
-
0
votes1
answer84
viewsQ: Select does not display data in listview
I cannot get feedback from my select in the database. Where I show the data in a listview. using (_connection = new MySql.Data.MySqlClient.MySqlConnection("Database=roubo_furto; Data…
-
0
votes2
answers49
viewsQ: Datapicker Mysql
How to take the value that is in datepicker and do a search in the database? I tried this way but it is not correct var cmd = new MySqlCommand("SELECT distinct id, Pedagio, Carro, Placa, Fabricante,…
-
-1
votes1
answer236
viewsQ: COM serial port
I’m trying to execute a code every time, where it takes the value sent by the COM port of the Arduino, prints in a textbox and soon after generates an Insert in the mysql database. Only that he read…
-
2
votes0
answers132
viewsQ: Communicate with Arduino through the COM4 port
I created a code in c# to communicate with the Arduino uno. He has to pass me what the tag passed by the rfid reader and show in a textbox the value. I added the serialport1. Code:…
-
1
votes1
answer184
viewsQ: Event item Combobox
I have a combobox and would like when I selected the date item to make the datapick visible. How to perform this operation?
-
1
votes1
answer35
viewsQ: Parameter’s passage
I have the following code that dates the Mysql database to textblock: textBlock8.Text = (reader.GetString("Data")); What happens is that it is passing the date and time. I would like to pass only…
-
1
votes1
answer664
viewsQ: Bug in the build?
What a mistake when I compile my application? Severity Code Description Project File Line Suppression State Error CS1061 'Blankpage1' does not contain a Definition for 'listView_SelectionChanged'…
-
0
votes1
answer193
viewsQ: Arduino + C# + RFID?
I can get the id of tag with this snippet of code and play in a Textbox, but, it would take information from which reader RFID she was read? serialPort1.Open(); string entrada =…
-
0
votes1
answer108
viewsQ: Two readers on the Australian
how this code in I read the card and inform if it is registered or not. Now I need to insert two rfid readers in the Arduino. How to add the second rfid reader to this code? include SPI.h include…
-
0
votes1
answer541
viewsQ: send rfid data to Mysql
How do I make sure that when the tag goes through the rfid reader the following information is sent to the mysql database: "Salvador", "Bahia" ?
-
1
votes1
answer35
viewsQ: Data in listview (uwp)
how to display the information of a Mysql database record in a listview? I tried it but it didn’t work. using (_connection = new MySql.Data.MySqlClient.MySqlConnection("Database=teste; Data…
-
1
votes1
answer56
viewsQ: listbox item (UWP)
With this code I add items to listbosx with the amount of record I have. How to have a check before to know if the entry of that record has been added and not act item with the same id number?…
-
1
votes2
answers122
viewsQ: listbox with database records
With this code I create an item in the listbox with the id number, I would like it to create an item for each id record you have in the database. Database: Mysql Code: UWP C# using (_connection =…
-
0
votes1
answer49
viewsQ: Check value textbox x mysql (universal app win 10)
I have a textbox where I save a value. I wonder if this value is the same as the last id in my mysql database table. How do I do this?
-
-1
votes1
answer66
viewsQ: Dispatchertimer C# error (Universal app win 10)
I am new to programming and I was able to make this code with help, only there is an error. follow picture. public sealed partial class MainPage : Page { private MySqlConnection _connection;…