Skip to content

Commit c2bc84d

Browse files
committed
fixing sub-menus
1 parent 1c79923 commit c2bc84d

File tree

9 files changed

+18
-6
lines changed

9 files changed

+18
-6
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,17 @@ https://github.com/neu-rah/AnsiStream
241241
242242
- Unix terminal
243243
244-
**Web browser** _(experimental)_
244+
**Web browser**
245245
246-
- ESP8266 Web Server
246+
- ESP8266
247+
248+
**Web JSON REST**
249+
250+
- ESP8266
251+
252+
**Websockets**
253+
254+
- ESP8266
247255
248256
### Input devices
249257

examples/esp8266/WebMenu/WebMenu/WebMenu.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ menuOut& operator<<(menuOut& o,endlObj) {
5959
return o;
6060
}
6161

62-
#define CUR_VERSION "1.1"
62+
//this version numbers MUST be the same as data/1.2
63+
#define CUR_VERSION "1.2"
6364
#define APName "WebMenu"
6465
#define ANALOG_PIN 4
6566

@@ -171,7 +172,7 @@ MENU(subMenu,"Sub-Menu",doNothing,noEvent,noStyle
171172
,OP("Sub1",doNothing,noEvent)
172173
,OP("Sub2",doNothing,noEvent)
173174
,OP("Sub3",doNothing,noEvent)
174-
// ,altOP(altPrompt,"",doNothing,noEvent)
175+
,altOP(altPrompt,"",doNothing,noEvent)
175176
,EXIT("<Back")
176177
);
177178

examples/esp8266/WebMenu/WebMenu/data/1.1/bootstrap.xslt renamed to examples/esp8266/WebMenu/WebMenu/data/1.2/bootstrap.xslt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151
</li>
5252
</xsl:template>
5353

54-
<!-- something special for light schedulle menu, μTC is sending a resume to conserve trafic -->
54+
<xsl:template match="p[@t='menu']">
55+
<xsl:call-template name="linkBtn"/>
56+
</xsl:template>
57+
5558
<xsl:template match="p[@t='mn']" mode="pad">
5659
<xsl:call-template name="linkBtn"/>
5760
</xsl:template>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ArduinoMenu library
2-
version=4.15.3
2+
version=4.15.4
33
author=Rui Azevedo, [email protected]
44
maintainer=neu-rah, [email protected]
55
sentence=Generic menu/interactivity system

0 commit comments

Comments
 (0)