Skip to content

Instantly share code, notes, and snippets.

View kkentzo's full-sized avatar

Kyriakos Kentzoglanakis kkentzo

View GitHub Profile
void ethernet_connect() {
tcpip_adapter_ip_info_t ip_info;
tcpip_adapter_init();
ESP_ERROR_CHECK(esp_event_loop_create_default());
ESP_ERROR_CHECK(tcpip_adapter_set_default_eth_handlers());
ESP_ERROR_CHECK(esp_event_handler_register(ETH_EVENT, ESP_EVENT_ANY_ID, &eth_event_handler, NULL));
ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_ETH_GOT_IP, &eth_got_ip_event_handler, NULL));
eth_mac_config_t mac_config = {
@kkentzo
kkentzo / jabber-hipchat.el
Created September 19, 2017 06:59 — forked from egh/jabber-hipchat.el
jabber.el hipchat setup
(require 's)
(require 'request)
(require 'seq)
(require 'jabber)
(defvar hipchat--user-info-for-completion nil)
(defcustom hipchat-nickname "Full name" "Hipchat real name (see see https://hipchat.com/account/xmpp)."
:type '(string)