26#if defined(SFE_IRIDIUM_ARDUINO)
32 typedef IPAddress sfe_ip_address_t;
35#elif defined(SFE_IRIDIUM_ESP_IDF)
44 _address[0] = _address[1] = _address[2] = _address[3] = 0;
46 SfeIPAddress(uint8_t first, uint8_t second, uint8_t third, uint8_t fourth)
54 uint8_t operator[](
int index)
const {
return _address[index & 3]; }
55 uint8_t &operator[](
int index) {
return _address[index & 3]; }
57 bool operator==(
const SfeIPAddress &other)
const
59 return (_address[0] == other._address[0]) && (_address[1] == other._address[1]) &&
60 (_address[2] == other._address[2]) && (_address[3] == other._address[3]);
62 bool operator!=(
const SfeIPAddress &other)
const {
return !(*
this == other); }
65 std::string toString(
void)
const
68 snprintf(buf,
sizeof(buf),
"%u.%u.%u.%u", _address[0], _address[1], _address[2], _address[3]);
69 return std::string(buf);
76 typedef SfeIPAddress sfe_ip_address_t;
Definition: nmeaMessage.h:30