Posts by Elliot Alderson • 177 points
8 posts
-
0
votes1
answer150
viewsQ: sprintf does not give the expected result
I have variables of the type Unsigned Long Int and would like to save its value in a string, to perform calculation of checksum and send via serial communication. void Payload(int long unsigned…
-
4
votes2
answers396
viewsQ: Convert string value to hexadecimal without changing format
I am using the following code in a Class. public Int16 Endereco = 0x7302; byte[] Data = BitConverter.GetBytes(Endereco); Array.Reverse(Data); [...] I would like to receive the value for the variable…
-
1
votes1
answer802
viewsA: Read file . txt, send Line and Delete it after confirmation of receipt
Good guys the answer found was to create the variable lineCounter to count successfully sent lines //Path ex : "/home/dhnqe/DataContainer.txt" if (File.Exists(path)) { int lineCount = 0; // VARIAVEL…
-
2
votes1
answer802
viewsQ: Read file . txt, send Line and Delete it after confirmation of receipt
This code is the fragment of a method that reads a text file and sends its content line by line, where each sent line receives a confirmation of receipt. I would like to delete from the file the…
-
2
votes1
answer749
viewsA: How to create loop thread in c#?
I don’t know what your role will do but this would be a Loop Thread. using System.Threading; ... Thread thread = new Thread(tarefa); thread.Start(); public void tarefa() { while(true) { ...…
-
1
votes1
answer1489
viewsQ: Start Thread with Input Parameters for Void Method
I try to initialize a Thread that has the function of processing a certain information by a method, so that the main execution line of the program continues running. But I need to pass two values…
-
0
votes1
answer130
viewsA: Subtract Datetime variables
One of the ways to do this oriented to objects, is using the class Datetime, it has the diff method that returns a Dateinterval object, which represents the interval between two distinct dates:…
phpanswered Elliot Alderson 177 -
4
votes1
answer192
viewsQ: Parallel Processing Routine C#
I would like to start a data processing method whenever I receive a String with START content through the Transceiver event.Receivelineeventhandler(); but this method will have a processing time as…