It is vital that you have the correct libraries installed in your Arduino to allow it to compile the code. You should have
From WiRocS V 15, I have been saving the Sketch files with them setup for Stationary Nodes. It should be possible to simply compile the code and upload it (and the SPIFFS sketch data) to your ESP 8266 or ESP32. See Direct Binary Upload
But If you wish to change the way the code compiles and works, there are a number of Directives set in directives.h that affect the coding.
I have tried to make the code react sensibly when programmed to a blank board, but it is difficult to cover all eventualities. So, if you have any problems with the code repeatedly crashing after your upload, it may be that it is having trouble with internally set (wrongly or not at all) EEprom settings. If you are experiencing this issue, I have some "Force" defines to set internal variables. These are probably not required, but:
WiRocS stores all its sound effects in a "SPIFFS" (Serial Peripheral Interface Flash File System) To make my code "work as expected" , it needs to have all the sketch programmed on the board, including the Sketch data upload.
Once they have been programmed once via the serial port, the nodes can be updated by Arduino using OTA (Over the Air) wireless programming.\
To do this you must know the node IP address. Then, in Arduino, in "tools": port", select the node you wish to update.
Then proceed with Sketch:upload as you would if the node was connected physically.
I have noticed that the Node may need to be powered down and then re-powered after an OTA upload.
Because the MQTT find broker code blocks all other operations, the Node should be successfully connected to a MQTT broker before the update can be undertaken. Also note that, depending on what #defines you have used, after updating, you may still need to physically connect to the node to set SSID and Passwords etc. - But the update should not affect the saved values, so in general, if the code worked before you updated, it should do so again afterwards.
It is possible to directly write a compiled Binary file to an ESP 8266 without using Arduino. For the ESP8266, you can use the NodeMCU Firmware Programmer. https://github.com/nodemcu/nodemcu-flasher
You Will still need to upload the SPIFFS data files to the hardware (or have already uploaded them)