|
Android example source code file (AtCommandHandler.java)
The AtCommandHandler.java Android example source code/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package android.bluetooth; import android.bluetooth.AtCommandResult; /** * Handler Interface for {@link AtParser}.<p> * @hide */ public abstract class AtCommandHandler { /** * Handle Basic commands "ATA".<p> * These are single letter commands such as ATA and ATD. Anything following * the single letter command ('A' and 'D' respectively) will be passed as * 'arg'.<p> * For example, "ATDT1234" would result in the call * handleBasicCommand("T1234").<p> * @param arg Everything following the basic command character. * @return The result of this command. */ public AtCommandResult handleBasicCommand(String arg) { return new AtCommandResult(AtCommandResult.ERROR); } /** * Handle Actions command "AT+FOO".<p> * Action commands are part of the Extended command syntax, and are * typically used to signal an action on "FOO".<p> * @return The result of this command. */ public AtCommandResult handleActionCommand() { return new AtCommandResult(AtCommandResult.ERROR); } /** * Handle Read command "AT+FOO?".<p> * Read commands are part of the Extended command syntax, and are * typically used to read the value of "FOO".<p> * @return The result of this command. */ public AtCommandResult handleReadCommand() { return new AtCommandResult(AtCommandResult.ERROR); } /** * Handle Set command "AT+FOO=...".<p> * Set commands are part of the Extended command syntax, and are * typically used to set the value of "FOO". Multiple arguments can be * sent.<p> * AT+FOO=[<arg1>[, Other Android examples (source code examples)Here is a short list of links related to this Android AtCommandHandler.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.