logo elektroda
logo elektroda
X
logo elektroda

How to Enable SEND_POSTANDGET on BK7231N/T and Compile Custom Firmware

Tilator 51 2
ADVERTISEMENT
  • #1 21785828
    Tilator
    Level 11  
    I have several different paltforms. Mostly based on BK7231N/T but also others.

    It seems to be, I can run command sendPOST http://Router_name/Temp.php?Device_name and it does run the PHP code Temp.php on the router and passes parameter Device_name to it just fine. It works as expected and makes it possible to trigger cool things depending on what happens on the OpenBK device.

    But - it does only work by default on my ESP8266 device. The command seems to be commented out from other platforms I have.

    I would like to turn it on for the rest of them and I have a couple questions about it.

    I know there seems to be some documentation here: https://www.elektroda.com/news/news4033833.html but I did not quite understand how it is supposed to work.

    Do I download the github code on my own computer, edit it, and somehow make remote computer to compile the code on my own PC. Or how is it supposed to work?

    An other question is, the obk_config.h file has an exact section "PLATFORM_LN882H" and it has section "//#define ENABLE_SEND_POSTANDGET 1" to edit, but there seems not to be an an exact section for BK7231N or BK7231T. What should I edit to enable SEND_POSTANDGET for these two palforms?

    B.T.W: my Temp.php loops like this

    Code: PHP
    Log in, to see the code



    in case someone else would like to know. It's an OpenWRT router having PHP installed.
  • ADVERTISEMENT
  • #2 21785942
    p.kaczmarek2
    Moderator Smart Home
    There is no need to download anything. Just fork repository, edit obk_config.h and open a PR. It could even work without PR, but I am not sure, as I never tried it from the contributor side. @divadiow ?

    You need to make sure that the desired define exists in the target platform section. If that's not present, add it. So, if you want to have ENABLE_SEND_POSTANDGET on , let's say, BL602, you must find where BL602 section begins and add #define ENABLE_SEND_POSTANDGET 1 there.
    Helpful post? Buy me a coffee.
ADVERTISEMENT