Edgehog Device SDK ESP32 v0.8.1
ESP32 device SDK for the Edgehog platform
Loading...
Searching...
No Matches
edgehog_network_interface.h
Go to the documentation of this file.
1/*
2 * This file is part of Edgehog.
3 *
4 * Copyright 2022 SECO Mind Srl
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 * SPDX-License-Identifier: Apache-2.0
19 */
20
26#ifndef EDGEHOG_NETWORK_INTERFACE_H
27#define EDGEHOG_NETWORK_INTERFACE_H
28
29#include "edgehog_device.h"
30
34typedef enum
35{
36 NETWORK_INTERFACE_TECHNOLOGY_INVALID = 0,
37 NETWORK_INTERFACE_TECHNOLOGY_ETHERNET,
38 NETWORK_INTERFACE_TECHNOLOGY_BLUETOOTH,
39 NETWORK_INTERFACE_TECHNOLOGY_CELLULAR,
40 NETWORK_INTERFACE_TECHNOLOGY_WIFI,
42
43extern const astarte_interface_t netif_interface;
44
55void edgehog_netif_properties_publish(edgehog_device_handle_t edgehog_device,
56 const char *iface_name, const char *mac_address, edgehog_netif_technology_type technology_type);
57
58#endif // EDGEHOG_NETWORK_INTERFACE_H
Edgehog device SDK API.
edgehog_netif_technology_type
Edgehog network interface technology type codes.
Definition edgehog_network_interface.h:35
void edgehog_netif_properties_publish(edgehog_device_handle_t edgehog_device, const char *iface_name, const char *mac_address, edgehog_netif_technology_type technology_type)
Publish Network interface properties.