If I start fresh using JN-AN-1190-JenNet-IP-Application-Template, how do I enable high power mode for the JN5168-001-M06 module ?
SDK used is JN-SW-4165.
It seems like AppApi, MiniMac, & Jennet do not mix well ?
I have tried:
PRIVATE void *pvMac;
PRIVATE MAC_Pib_s *psPib;
pvMac = pvAppApiGetMacHandle();
psPib = MAC_psPibGetHandle(pvMac);
eAppApiPlmeSet(2, (uint32)(-11)); // 2 = PHY_PIB_ATTR_TX_POWER
vAppApiSetHighPowerMode(2, TRUE); // 2 = APP_API_MODULE_HPM06
For the makefile, I tried alternating between AppApi and MiniMAC:
APPLIBS += AppApi
#APPLIBS += MiniMAC
INCFLAGS += -I$(COMPONENTS_BASE_DIR)/AppApi/Include
#INCFLAGS += -I$(COMPONENTS_BASE_DIR)/MiniMAC/Include
#ADDITIONAL_SRC_DIR += $(COMPONENTS_BASE_DIR)/MiniMAC/Source
but it never once worked.
Any help would be appreciated.