Since the design is parametric, it can easily be modified to hold any other rectangular thing. Just adjust variables leny_enclosure and lenz_enclosure in the FreeCAD VarSet
Printing
any material
layer height: ≤ 0.3mm
nozzle size: ≤ 0.6mm
3 or 4 perimeters (wall strength) depending on nozzle size
only the clamp's axis can profit from a bit of support. Remember to cut away the remaining support filament, so the axis is round.
infill: 25% honeycomb
Assembly
print
make sure the clamp's axis is round. If necessary cut away a bit, so it fits into the wall-mount.
slide the ESP32 enclosure into the clamp
press the clamps axis into the wall-mount parts at the desired angle
connect the two wall-mount parts using the connector.
mount using double-sided (gecko-)tape
Alternatively, you can screw the wall-mount in, using the mount-hole and a big washer. In that case, use the connectors first and put in the clamp last.