我做了一个基于网络的光控制器,一切都很完美。但我很难关掉其中一个装置。
若要关闭灯,则必须在通道17上发送值250,时间至少为5秒。这是它变得棘手的地方,我怎么做呢?
我正在使用来自DMXSerial的库,但它缺乏文档。
下面是代码中的一小部分。
if(finder.find("#dmx")) { // Find out if this is a dmx string.
if(finder.findUntil("type", ",")) { // Finds the type
cmd = finder.getValue();
下面是我的MySQL日志文件中的错误。
[Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
我该怎么关掉它?关闭错误对我的数据库有影响吗?
我上的是MySQL 5.7.14。
My.ini包含以下内容:
sql-mode="STRICT_
有些是相当明显的。具体来说,我指的是:
-h halt or power off after shutdown
-H halt after shutdown (implies -h)
-P power off after shutdown (implies -h)
当你关机的时候,停下来或者关机不是应该的吗?这些不是多余的吗?
-c cancel a running shutdow