Vergil Cola
/
MQTTGatewayK64
Fork of my MQTTGateway
XbeeMonitor/XBeeLib/RemoteXBee/RemoteXBee.cpp@0:f1d3878b8dd9, 2017-04-08 (annotated)
- Committer:
- vpcola
- Date:
- Sat Apr 08 14:45:51 2017 +0000
- Revision:
- 0:f1d3878b8dd9
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vpcola | 0:f1d3878b8dd9 | 1 | /** |
vpcola | 0:f1d3878b8dd9 | 2 | * Copyright (c) 2015 Digi International Inc., |
vpcola | 0:f1d3878b8dd9 | 3 | * All rights not expressly granted are reserved. |
vpcola | 0:f1d3878b8dd9 | 4 | * |
vpcola | 0:f1d3878b8dd9 | 5 | * This Source Code Form is subject to the terms of the Mozilla Public |
vpcola | 0:f1d3878b8dd9 | 6 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
vpcola | 0:f1d3878b8dd9 | 7 | * You can obtain one at http://mozilla.org/MPL/2.0/. |
vpcola | 0:f1d3878b8dd9 | 8 | * |
vpcola | 0:f1d3878b8dd9 | 9 | * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343 |
vpcola | 0:f1d3878b8dd9 | 10 | * ======================================================================= |
vpcola | 0:f1d3878b8dd9 | 11 | */ |
vpcola | 0:f1d3878b8dd9 | 12 | |
vpcola | 0:f1d3878b8dd9 | 13 | #include "RemoteXBee.h" |
vpcola | 0:f1d3878b8dd9 | 14 | |
vpcola | 0:f1d3878b8dd9 | 15 | using namespace XBeeLib; |
vpcola | 0:f1d3878b8dd9 | 16 | |
vpcola | 0:f1d3878b8dd9 | 17 | RemoteXBee::RemoteXBee() |
vpcola | 0:f1d3878b8dd9 | 18 | { |
vpcola | 0:f1d3878b8dd9 | 19 | _dev_addr64 = ADDR64_UNASSIGNED; |
vpcola | 0:f1d3878b8dd9 | 20 | _dev_addr16 = ADDR16_UNKNOWN; |
vpcola | 0:f1d3878b8dd9 | 21 | } |
vpcola | 0:f1d3878b8dd9 | 22 | |
vpcola | 0:f1d3878b8dd9 | 23 | RemoteXBee::RemoteXBee(uint64_t remote64) : _dev_addr64(remote64) |
vpcola | 0:f1d3878b8dd9 | 24 | { |
vpcola | 0:f1d3878b8dd9 | 25 | _dev_addr16 = ADDR16_UNKNOWN; |
vpcola | 0:f1d3878b8dd9 | 26 | } |
vpcola | 0:f1d3878b8dd9 | 27 | |
vpcola | 0:f1d3878b8dd9 | 28 | RemoteXBee::~RemoteXBee() |
vpcola | 0:f1d3878b8dd9 | 29 | { |
vpcola | 0:f1d3878b8dd9 | 30 | } |
vpcola | 0:f1d3878b8dd9 | 31 | |
vpcola | 0:f1d3878b8dd9 | 32 | uint64_t RemoteXBee::get_addr64() const |
vpcola | 0:f1d3878b8dd9 | 33 | { |
vpcola | 0:f1d3878b8dd9 | 34 | return _dev_addr64; |
vpcola | 0:f1d3878b8dd9 | 35 | } |
vpcola | 0:f1d3878b8dd9 | 36 | |
vpcola | 0:f1d3878b8dd9 | 37 | uint16_t RemoteXBee::get_addr16() const |
vpcola | 0:f1d3878b8dd9 | 38 | { |
vpcola | 0:f1d3878b8dd9 | 39 | return _dev_addr16; |
vpcola | 0:f1d3878b8dd9 | 40 | } |
vpcola | 0:f1d3878b8dd9 | 41 | |
vpcola | 0:f1d3878b8dd9 | 42 | RemoteXBee802::RemoteXBee802() : RemoteXBee() |
vpcola | 0:f1d3878b8dd9 | 43 | { |
vpcola | 0:f1d3878b8dd9 | 44 | } |
vpcola | 0:f1d3878b8dd9 | 45 | |
vpcola | 0:f1d3878b8dd9 | 46 | RemoteXBee802::RemoteXBee802(uint64_t remote64) : RemoteXBee(remote64) |
vpcola | 0:f1d3878b8dd9 | 47 | { |
vpcola | 0:f1d3878b8dd9 | 48 | } |
vpcola | 0:f1d3878b8dd9 | 49 | |
vpcola | 0:f1d3878b8dd9 | 50 | RemoteXBee802::RemoteXBee802(uint16_t remote16) : RemoteXBee() |
vpcola | 0:f1d3878b8dd9 | 51 | { |
vpcola | 0:f1d3878b8dd9 | 52 | _dev_addr16 = remote16; |
vpcola | 0:f1d3878b8dd9 | 53 | } |
vpcola | 0:f1d3878b8dd9 | 54 | |
vpcola | 0:f1d3878b8dd9 | 55 | RemoteXBee802::RemoteXBee802(uint64_t remote64, uint16_t remote16) : RemoteXBee(remote64) |
vpcola | 0:f1d3878b8dd9 | 56 | { |
vpcola | 0:f1d3878b8dd9 | 57 | _dev_addr16 = remote16; |
vpcola | 0:f1d3878b8dd9 | 58 | } |
vpcola | 0:f1d3878b8dd9 | 59 | |
vpcola | 0:f1d3878b8dd9 | 60 | RemoteXBee802::~RemoteXBee802() |
vpcola | 0:f1d3878b8dd9 | 61 | { |
vpcola | 0:f1d3878b8dd9 | 62 | } |
vpcola | 0:f1d3878b8dd9 | 63 | |
vpcola | 0:f1d3878b8dd9 | 64 | RemoteXBeeZB::RemoteXBeeZB() : RemoteXBee() |
vpcola | 0:f1d3878b8dd9 | 65 | { |
vpcola | 0:f1d3878b8dd9 | 66 | } |
vpcola | 0:f1d3878b8dd9 | 67 | |
vpcola | 0:f1d3878b8dd9 | 68 | RemoteXBeeZB::RemoteXBeeZB(uint64_t remote64) : RemoteXBee(remote64) |
vpcola | 0:f1d3878b8dd9 | 69 | { |
vpcola | 0:f1d3878b8dd9 | 70 | } |
vpcola | 0:f1d3878b8dd9 | 71 | |
vpcola | 0:f1d3878b8dd9 | 72 | RemoteXBeeZB::RemoteXBeeZB(uint64_t remote64, uint16_t remote16) : RemoteXBee(remote64) |
vpcola | 0:f1d3878b8dd9 | 73 | { |
vpcola | 0:f1d3878b8dd9 | 74 | _dev_addr16 = remote16; |
vpcola | 0:f1d3878b8dd9 | 75 | } |
vpcola | 0:f1d3878b8dd9 | 76 | |
vpcola | 0:f1d3878b8dd9 | 77 | RemoteXBeeZB::~RemoteXBeeZB() |
vpcola | 0:f1d3878b8dd9 | 78 | { |
vpcola | 0:f1d3878b8dd9 | 79 | } |
vpcola | 0:f1d3878b8dd9 | 80 | |
vpcola | 0:f1d3878b8dd9 | 81 | RemoteXBeeDM::RemoteXBeeDM() : RemoteXBee() |
vpcola | 0:f1d3878b8dd9 | 82 | { |
vpcola | 0:f1d3878b8dd9 | 83 | } |
vpcola | 0:f1d3878b8dd9 | 84 | |
vpcola | 0:f1d3878b8dd9 | 85 | RemoteXBeeDM::RemoteXBeeDM(uint64_t remote64) : RemoteXBee(remote64) |
vpcola | 0:f1d3878b8dd9 | 86 | { |
vpcola | 0:f1d3878b8dd9 | 87 | } |
vpcola | 0:f1d3878b8dd9 | 88 | |
vpcola | 0:f1d3878b8dd9 | 89 | RemoteXBeeDM::~RemoteXBeeDM() |
vpcola | 0:f1d3878b8dd9 | 90 | { |
vpcola | 0:f1d3878b8dd9 | 91 | } |