#ifndef MDCP_LORA_H
#define MDCP_LORA_H

#include <zephyr/lorawan/lorawan.h>
#include <zephyr/logging/log.h>
#include <zephyr/kernel.h>
#include <zephyr/settings/settings.h>
#include "power.h"
#include "my_i2c.h"


#define LORAWAN_DEV_EUI         {0x61, 0xEB, 0xCA, 0x7B, 0x36, 0x9A, 0x8E, 0xA5}
#define LORAWAN_JOIN_EUI        {0x19, 0xE3, 0xA2, 0x6A, 0x3E, 0x16, 0x09, 0x12}
#define LORAWAN_APP_KEY         {0x6C, 0xFA, 0xF8, 0x38, 0xC3, 0xAB, 0xEA, 0x3F, 0xC4, 0x1D, 0x7A, 0xDE, 0x56, 0x4A, 0x62, 0x83}


int lorawan_init(const struct device* lora_dev, enum lorawan_datarate dr, uint8_t channel);
int lorawan_join_network(void);
int lorawan_send_data(uint8_t *payload, uint8_t size);

#endif