Ricerca 
it-ITen-US
Register
Login
In-Vesti Dotnetwork
IN-VESTI DNW!!!
Sono finalmente arrivate le nuovissime T-Shirt di DotNetWork!!! Con soli 15,00 € ci sosterrai nelle spese di gestione della Community e ti invieremo a casa una splendida maglietta.
Se vuoi contribuire al mantenimento di DotNetWork.it Vai sulla pagina Iscrizioni
Effettua il pagamento usando IWBank
Click per andare alla pagina di Iscrizione
Oppure un Bonifico bancario (le coordinate sono sulla pagina Iscrizioni), inviaci una mail a support@dotnetwork.it indicandoci la tua taglia e l'indirizzo di spedizione.  Non appena verificata la ricezione del pagamento provvederemo a spedirti la tua T-Shirt.  Le magliette sono disponibili nelle taglie S-M-L-XL-XXL (in caso di esaurimento di una delle taglie, indica quella di "Backup"). Grazie per IN-VESTIRTI con NOI!!!
.:DotNetWork Founders:.
    Print     


DotNetWork Forums
inviare Comando Invio su seriale C#
Last Post 24 Jul 2010 20:32 by Mario De Ghetto [MVP]. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages

Posts:544

--
24 Jul 2010 16:19  
Buongiorno a tutti.
Dovrei inviare un comando alla seriale che finisca col tasto Invio... in VB si fà così: comPort.Write("AT+CMGL=""STO SENT""" & CChar(ChrW(13)))

Come lo faccio in C#?

Grazie.

Posts:666

--
24 Jul 2010 17:44  
Come lo faccio in C#?

+ Convert.ToChar(13).ToString
HTH
Alberto

Posts:192

--
24 Jul 2010 20:32  
Per la precisione:

comPort.Write(
String.Format("AT+CMGL={0}STO SENT{0}{1}",
Char.ConvertFromUtf32(34),
Char.ConvertFromUtf32(13));

;-P
You are not authorized to post a reply.

Active Forums 4.1
       
Articoli
Miniguida alla OOP con il .NET Framework- Parte I
Come prendere per mano un tipico programmatore VB6
2008/07/27 | Author: Alberto De Luca
Starting from Scratch with WPF (Part 3)
Rows, deities, brushes and refrigerators (second part)
2007/11/22 | Author: Sabrina Cosolo
Mixed Fry - General purpouse classes (part 2)
Helper: A class to perform XML Serialization on data Classes
2007/10/21 | Author: Sabrina Cosolo
Inheritance in pills (Part 1)
How to create a personalized TreeView
2008/03/22 | Author: Alberto De Luca
SQL Server Base Notions (part 1)
How to create a database in SQL Server using SQL Management Studio
2008/03/09 | Author: Sabrina Cosolo
ASP.NET immagini dinamiche con HttpHandler
Costruiamo un HttpHandler per la creazione di immagini dinamiche
2007/10/24 | Author: Rudy Azzan
Miniguida alla OOP con il .NET Framework- Parte III
Un' importante eredità: l'ereditarietà
2009/02/08 | Author: Alberto De Luca
Code Unit Testing (part 1)
How to start building tests to strengthen our code
2007/12/26 | Author: Sabrina Cosolo
    Print     
Home|Forums|Blogs|Mappa del sito
© 2007-2010 by DotNetWork  .:.  Terms Of Use  .:.  Privacy Statement  .:.  Login  .:.