⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msg.html

📁 手机短信编程的源代码
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><!--JBuilder QuickDoc-->
<HEAD>
<TITLE>Class smspack.Msg</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>

<H2>
<FONT SIZE="-1">smspack</FONT>
<BR>Klasse Msg</H2>
<DL>
<DT>class <B>Msg</B>
</DL>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF"><TD COLSPAN=1><FONT SIZE="+2">
<B>Methoden-Detail</B>
</FONT></TD></TR></TABLE>

<H3>sendSMS</H3>
<PRE>
public static void <B>sendSMS</B>(String&nbsp;dialno,
                           boolean&nbsp;notype,
                           String&nbsp;smstext)</PRE>
<DL><DD>sends a SMS over the mobile phone to the GSM network<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Parameters:</B><DD><CODE>dialno</CODE> - dialing number of the destionation</DD>
<DD><CODE>notype</CODE> - national/international dialing number</DD>
<DD><CODE>smstext</CODE> - SMS to send</DD>
<DT><B>Throws:</B><DD><CODE>java.rmi.RemoteException</CODE> - </DD>
</DL>
<HR>

<H3>getSMS</H3>
<PRE>
public static String <B>getSMS</B>(int&nbsp;index)</PRE>
<DL><DD>get SMS from the ME<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - of SMS</DD>
<DT><B>Returns:</B><DD>SMS string of the ME</DD>
<DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

<H3>getNoOfSMS</H3>
<PRE>
public static int <B>getNoOfSMS</B>()</PRE>
<DL><DD>get number of stored SMS from the ME<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Returns:</B><DD>number of stored SMS in the ME</DD>
<DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

<H3>getIndexOfSMS</H3>
<PRE>
public static int[] <B>getIndexOfSMS</B>()</PRE>
<DL><DD>get an index list of guilty SMS from the ME<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Returns:</B><DD>list of indexes of stored SMS in the ME</DD>
<DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

<H3>deleteSMS</H3>
<PRE>
public static void <B>deleteSMS</B>(int&nbsp;index)</PRE>
<DL><DD>delete a SMS from the ME<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - of SMS</DD>
<DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

<H3>deleteAllSMS</H3>
<PRE>
public static void <B>deleteAllSMS</B>()</PRE>
<DL><DD>deletes all SMS from the ME<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

<H3>getSignalQuality</H3>
<PRE>
public static int <B>getSignalQuality</B>()</PRE>
<DL><DD>get the signal quality from the ME<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Returns:</B><DD>received signal strength indication (rssi = 0 ... 31 (best), 99 not known)</DD>
<DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

<H3>getBatteryStatus</H3>
<PRE>
public static String <B>getBatteryStatus</B>()</PRE>
<DL><DD>get the battery status from the ME<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Returns:</B><DD>battery connection status (bcs), battery charge level (bcl) bcs: 0 powered by the battery 1 battery connected, but not powered by it 2 does not have a battery connected bcl: 0 battery is exhausted, or MT does not have a battery connected 1...100 battery has 1 ... 100 percent of capacity remaining</DD>
<DT><B>Throws:</B><DD><CODE>Exception</CODE> - </DD>
</DL>
<HR>

<H3>test</H3>
<PRE>
public static boolean <B>test</B>()</PRE>
<DL><DD>test the connection between PC and ME<DL><DD></DD></DL></DD>
</DL>
<DL><DT><B>Returns:</B><DD>answer string of the ME</DD>
<DT><B>Throws:</B><DD><CODE>java.rmi.RemoteException</CODE> - </DD>
</DL>
<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -