HTTP RPC Server mit vordefinierten Objekten
Dependencies: EthernetInterface HttpServer Servo mbed-rtos mbed
Fork of RPCHTTPServerVariable by
Mittels RPCVariable lassen sich lokale Variablen setzen. Diese Variablen können gesetzt write oder gelesen read werden.
Mittels Ticker u.ä. Varianten lassen sich damit auch Objektwerte setzen, welche von RPC nicht unterstützt werden, z.B. Servo's.
Client
Wert setzen: http://<IP-Adresse mbed>/rpc/servo2/write+0.5
mbed-rpc/parse_pins.h@14:3835863bc412, 2015-04-08 (annotated)
- Committer:
- stefan1691
- Date:
- Wed Apr 08 12:31:28 2015 +0000
- Revision:
- 14:3835863bc412
Korrektur AnalogIn laut . https://developer.mbed.org/questions/3897/AnalogIn-not-working-in-rpc/
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
stefan1691 | 14:3835863bc412 | 1 | /* mbed Microcontroller Library |
stefan1691 | 14:3835863bc412 | 2 | * Copyright (c) 2006-2013 ARM Limited |
stefan1691 | 14:3835863bc412 | 3 | * |
stefan1691 | 14:3835863bc412 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
stefan1691 | 14:3835863bc412 | 5 | * you may not use this file except in compliance with the License. |
stefan1691 | 14:3835863bc412 | 6 | * You may obtain a copy of the License at |
stefan1691 | 14:3835863bc412 | 7 | * |
stefan1691 | 14:3835863bc412 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
stefan1691 | 14:3835863bc412 | 9 | * |
stefan1691 | 14:3835863bc412 | 10 | * Unless required by applicable law or agreed to in writing, software |
stefan1691 | 14:3835863bc412 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
stefan1691 | 14:3835863bc412 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
stefan1691 | 14:3835863bc412 | 13 | * See the License for the specific language governing permissions and |
stefan1691 | 14:3835863bc412 | 14 | * limitations under the License. |
stefan1691 | 14:3835863bc412 | 15 | */ |
stefan1691 | 14:3835863bc412 | 16 | #ifndef MBED_PINMAP_H |
stefan1691 | 14:3835863bc412 | 17 | #define MBED_PINMAP_H |
stefan1691 | 14:3835863bc412 | 18 | |
stefan1691 | 14:3835863bc412 | 19 | #include "PinNames.h" |
stefan1691 | 14:3835863bc412 | 20 | |
stefan1691 | 14:3835863bc412 | 21 | namespace mbed { |
stefan1691 | 14:3835863bc412 | 22 | |
stefan1691 | 14:3835863bc412 | 23 | PinName parse_pins(const char *str); |
stefan1691 | 14:3835863bc412 | 24 | |
stefan1691 | 14:3835863bc412 | 25 | } |
stefan1691 | 14:3835863bc412 | 26 | |
stefan1691 | 14:3835863bc412 | 27 | #endif |