Click here to Skip to main content
15,899,937 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I set LOCALHOST in web config to use web services root address Pin
Roger Wright25-May-11 19:20
professionalRoger Wright25-May-11 19:20 
Generaltotally OT Pin
J4amieC25-May-11 23:02
J4amieC25-May-11 23:02 
GeneralRe: totally OT Pin
Pete O'Hanlon25-May-11 23:43
mvePete O'Hanlon25-May-11 23:43 
GeneralRe: totally OT Pin
SledgeHammer0126-May-11 6:33
SledgeHammer0126-May-11 6:33 
GeneralRe: totally OT Pin
Pete O'Hanlon26-May-11 7:08
mvePete O'Hanlon26-May-11 7:08 
GeneralRe: totally OT Pin
Roger Wright26-May-11 18:01
professionalRoger Wright26-May-11 18:01 
QuestionAt commands in c# Pin
aeman25-May-11 6:00
aeman25-May-11 6:00 
AnswerRe: At commands in c# Pin
Pete O'Hanlon25-May-11 6:45
mvePete O'Hanlon25-May-11 6:45 
You just need to use the SerialPort class to do this. Below is a sample that should help you get the idea on how to do this:
C#
SerialPort serialPort = new SerialPort("COM1", 115200, Parity.None, 8, StopBits.One);
serialPort.WriteTimeout = 5000;
serialPort.ReadTimeout = 5000;
serialPort.DataReceived += new SerialDataReceivedEventHandler(serialPort_DataReceived);
serialPort.Open();
serialPort.DtrEnable = true;
serialPort.RtsEnable = true;
serialPort.Write("AT+CMGF=1\r\n");
Thread.Sleep(500);
serialPort.Write("AT+CNMI=2,2\r\n");
Thread.Sleep(500);
serialPort.Write(string.Format("AT+CSCA=\"+{0}\"\r\n",serviceCentreAddress));
Thread.Sleep(500);

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility


GeneralRe: At commands in c# Pin
aeman25-May-11 8:41
aeman25-May-11 8:41 
GeneralRe: At commands in c# Pin
Pete O'Hanlon25-May-11 9:28
mvePete O'Hanlon25-May-11 9:28 
GeneralRe: At commands in c# Pin
Roger Wright25-May-11 19:54
professionalRoger Wright25-May-11 19:54 
Questioncaching data on server in windows application in c# Pin
siva45524-May-11 18:52
siva45524-May-11 18:52 
AnswerRe: caching data on server in windows application in c# Pin
Subin Mavunkal24-May-11 22:00
Subin Mavunkal24-May-11 22:00 
GeneralRe: caching data on server in windows application in c# Pin
Richard MacCutchan24-May-11 23:32
mveRichard MacCutchan24-May-11 23:32 
AnswerRe: caching data on server in windows application in c# Pin
Eddy Vluggen25-May-11 0:18
professionalEddy Vluggen25-May-11 0:18 
AnswerRe: caching data on server in windows application in c# Pin
Pete O'Hanlon25-May-11 0:46
mvePete O'Hanlon25-May-11 0:46 
GeneralRe: caching data on server in windows application in c# Pin
siva45525-May-11 2:03
siva45525-May-11 2:03 
GeneralRe: caching data on server in windows application in c# Pin
Pete O'Hanlon25-May-11 2:19
mvePete O'Hanlon25-May-11 2:19 
GeneralRe: caching data on server in windows application in c# [modified] Pin
siva45525-May-11 19:02
siva45525-May-11 19:02 
GeneralRe: caching data on server in windows application in c# Pin
Pete O'Hanlon25-May-11 21:44
mvePete O'Hanlon25-May-11 21:44 
AnswerRe: caching data on server in windows application in c# Pin
Luc Pattyn25-May-11 1:30
sitebuilderLuc Pattyn25-May-11 1:30 
AnswerRe: caching data on server in windows application in c# Pin
PIEBALDconsult25-May-11 2:50
mvePIEBALDconsult25-May-11 2:50 
AnswerRe: caching data on server in windows application in c# Pin
jschell25-May-11 10:16
jschell25-May-11 10:16 
QuestionTFS GetEffectivePermission and TF14014: Cannot query effective item or global permissions for other users. Pin
devvvy24-May-11 16:26
devvvy24-May-11 16:26 
QuestionWorking with multiple values in one field in an Access database Pin
Matt U.24-May-11 11:50
Matt U.24-May-11 11:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.