openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.43k stars 254 forks source link

CFG_GetDeviceName #101

Closed PeterPolacek closed 2 years ago

PeterPolacek commented 2 years ago

I cant compile because CFG_GetDeviceName D:\git\bk7231\openbk7231n-master\platforms\bk7231n\bk7231n_os/beken378/func/lwip_intf/lwip-2.0.2/port/ethernetif.c:140: undefined reference to `CFG_GetDeviceName'

What i am doing wrong?

Thank you

openshwprojects commented 2 years ago

What are you compiling? It seems that you are compiling one of the older examples and not the whole OBK project. Then they don't have this function. Just add in your main: const char *CFG_GetDeviceName() { return "SomeName"; } and that's it.

openshwprojects commented 2 years ago

I tested myself and now it works, I updated the repos. I added that function in examples.

Case closed, thanks for reporting.